Skip to content

Scrape bot, to get you an offline copy of tutorials

License

Notifications You must be signed in to change notification settings

Hybridthegamer/learncpp-download

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

learncpp -> PDF

Just got significantly faster, thanks to parallel processing ⚡

Support ❤️

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

Installation

Docker

docker pull amalrajan/learncpp-download:latest
docker run -d --name=learncpp-download -v <host-downloads-path>:/app/downloads --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

Local

git clone https://github.com/amalrajan/learncpp-download.git
cd learncpp-download
pip install -r requirements.txt

If you are a Windows user, head over to https://wkhtmltopdf.org/downloads.html and configure the package. On Linux/MacOS system, you should install this package using your package manager: wkhtmltopdf

Usage

python main.py

Parallel processing

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.

In case the script becomes unresponsive on your system, try an older version which downloads tutorials in a sequential fashion. Example, this tree: https://github.com/amalrajan/learncpp-download/tree/517e8c0818de79d3c0420c2e02f4e11c01c0b878.

Facing trouble?

Feel free to open a new issue here: https://github.com/amalrajan/learncpp-download/issues. Please attach the console logs along.

License

The MIT License

About

Scrape bot, to get you an offline copy of tutorials

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.5%
  • Dockerfile 6.5%