Is there a way to download the pyside online document and then convert it to a CHM file?

+4
source share
3 answers

I found it for the PySide 1.0.7 Reference , which is hosted on github:

https://github.com/srinikom/pyside-docs/archive/gh-pages.zip

(There is also version 1.1.0 on the French website. But I did not find a download link.)

+1
source

Everything on the Internet can be mirrored, so mirror it first with a tool like httrack or wget.

Download all resources from http://pyside.imtqy.com/docs/pyside/ to CWD using httrack:

httrack http://pyside.imtqy.com/docs/pyside/ \ βˆ’βˆ’robots=0 \ βˆ’βˆ’userβˆ’agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" \ --verbose \ +*.js +*.css +*.png +*.gif +*.jpeg +*.jpg \ 

If you need a cross-platform format that can be opened and read everywhere, I suggest EPUB. caliber makes it easy to convert HTML to EPUB, mobi, PDF and other popular formats. First add the downloaded resource to the gauge library. You need to add only the home page. Caliber will follow the links

 calibredb add index.html 

Then open the caliber and convert it to any format you want

caliber_convert

There is more than one way to throw a cat. When you receive the data on your hard drive, you can use many tools to improve the presentation, using SIGIL to modify the epub generated by the caliber. You can use Pandoc or other commercial and free / opensource tools for conversion and modification as well.

0
source

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


All Articles