Skip to content

An advanced web scraper tool that seamlessly fetches and combines over 350 online tutorials into a convenient offline PDF format.

License

Notifications You must be signed in to change notification settings

amalrajan/learncpp-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LearnCPP Downloader

An advanced web scraper tool that seamlessly fetches and combines over 350 online tutorials into a convenient offline PDF format.

Support ❤️

Please support here: https://www.learncpp.com/about/

Execution

Docker

Get the image

docker pull amalrajan/learncpp-download:latest

And run the container

docker run --rm --name=learncpp-download --mount type=bind,destination=/app/learncpp,source=/home/amalr/temp/downloads amalrajan/learncpp-download

Replace /home/amalr/temp/downloads with a local path on your system where you'd want the files to get downloaded.

Local

Install these dependencies

  1. Python 3.10.12

  2. wkhtmltopdf

  • Debian based: sudo apt install wkhtmltopdf
  • macOS: brew install Caskroom/cask/wkhtmltopdf
  • Windows: choco install wkhtmltopdf (or simply download it the old fashioned way). I wouldn't recommend using Windows, as the fonts are a bit weird. Unless of course, you have a thing for weird stuff.

Run it

Clone the repository

git clone https://github.com/amalrajan/learncpp-download.git

Install Python dependencies

cd learncpp-download
pip install -r requirements.txt

Run the script

scrapy crawl learncpp 

You'll find the downloaded files inside learncpp directory under the repository root directory.

Facing trouble?

Feel free to open a new issue here: https://github.com/amalrajan/learncpp-download/issues. Don't forget to attach those console logs.

License

The MIT License