Offline Documents?

Hi there,
I am about to be in spotty internet for the next 48 hours, and I would love to read through the documentation on https://beta.openai.com/docs/*

I have tried to download this using a scraping tool, but cannot as the proxy is in between.

Any help for offline usage of the documentation? I have the PHP, HTML and other documentation offline for these types of times.
Thanks

I’m not sure what kind of devices you have at your disposal, but it is possible on most devices to stitch together screenshots of a webpage. The API reference is one big page that can be screencapped, though the guides/tutorials are split up

1 Like

Thanks, that is not a bad idea.
I guess a Chrome browser extension would get me there in that fashion.

Not exactly the same, but Microsoft has a PDF for its OpenAI Azure service thingie
azure cognitive-services openai | Microsoft Learn

2 Likes

I have the same issue, but for the next few months. I need offline documentation for the API, ideally not just reference docs but also the rest. Where can i find it?

You’ll have to do a bit of work.

Use Chromium browser. Or Chrome if you must.
(set several environment variables to turn off Google Sync warnings and other Google wannabes in this browser)

Navigate to start page:

https://platform.openai.com/docs/introduction

More Tools → Developer tools: Console tab.

At the bottom, see input prompt >>>

paste:

copy(document.body.innerHTML);

Now go to a Notepad app, paste what was automatically copied to the clipboard.

Save as HTML.

If you want the links to work without rewriting, create a root directory /docs/ to store them all or put them on a web server with the same path. You can also get CSS.

The contents are from rendered javascript that are even more work to crawl. And how dumb to do bot checks on a site to promote your product…