How to download all PDF files from Apple Developer Library?

I want PDF versions of all Apple documentation for reference reasons. I don’t want to manually browse all the documentation pages to download them.

I found a number of solutions next door to what I needed, but not exactly. For example, it seems easy to get slide decks from WWDC, but I don't want that. I also found several scripts that are designed for this, but either do not work for me, or are in a different language (the first does not work because it is for Japanese documentation and seems to be outdated, the second does not work because I cannot get "BeautifulSoup"). I also found a Go program that seems to be doing what I want to do , but I can't get it to work for me. Here is a script that does what I want for sample code, but I would like to capture all the PDF files.

Any help is greatly appreciated.

+6
source share
2 answers

First of all, let me understand, I don't know anything about Python, but it seems very interesting. I followed your link and it works for me, thanks for that. All that I just downloaded the following modules:

and placed downloader.py script along with the modules (futures-2.1.4 and requests in the bs4 folder, see the screenshot) in the same directory. Then run the script by running the following command:

python downloader.py 

Hope this helps you figure it out.

enter image description here

+1
source

Xcode comes with all the API documents available for viewing offline.

Go to β†’ Help β†’ Documentation and API Reference.

+1
source

Source: https://habr.com/ru/post/983396/


All Articles