An advanced web scraper tool that seamlessly fetches and combines over 200 online tutorials into a convenient offline PDF format.
Please support here: https://www.learncpp.com/about/
This is not supported on Windows (yet). Till then, please stick with WSL2 or use the docker installation method.
Install this package using your package manager: wkhtmltopdf
.
Requires Python 3.10. Create a virtual environment before running the pip command.
git clone https://github.com/amalrajan/learncpp-download.git
cd learncpp-download
pip install -r requirements.txt
Now cd
into the cloned repository and run the script.
cd source
python main.py
The PDF files will get downloaded into a newly created "downloads" folder, right under "source" directory.
docker pull amalrajan/learncpp-download:latest
docker run --rm --name=learncpp-download --mount type=bind,destination=/app/downloads,source=<host-downloads-path> --shm-size=1.14gb amalrajan/learncpp-download
Replace <host-downloads-path>
with a local path on your system where you'd want the files to get downloaded.
Thanks to https://github.com/ray-project/ray, the processing time is now reduced to ~5 seconds from the previous 300 seconds, on a decent system. Watch out, this uses a lot more CPU and memory.
Feel free to open a new issue here: https://github.com/amalrajan/learncpp-download/issues. Please attach the console logs along.