This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script gathers all the pages of a manual and merges them into a PDF. | |
# You'll need to play a bit with inspect-element in order to figure out the format the correct url, | |
# but it should be easy to adapt it to any manual. | |
# This script is specifically for https://www.manua.ls/audi/q3-2018/manual. | |
# Their url format is https://www.manua.ls/viewer/{manual-id}/{page-number}/bg{page-number-hex}.png | |
# Example: https://www.manua.ls/viewer/668006/100/bg64.png | |
# Enjoy! | |
import requests | |
from tqdm import tqdm | |
from PIL import Image |