Giter Site home page Giter Site logo

dnyaneshwar1991 / learncpp-download Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amalrajan/learncpp-download

0.0 0.0 0.0 459 KB

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

License: MIT License

Python 93.49% Dockerfile 6.51%

learncpp-download's Introduction

LearnCPP Downloader

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

Support ❤️

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

Usage

Windows

This is not supported on Windows (yet). Till then, please stick with WSL2 or use the docker installation method.

Linux or macOS

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

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.

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.

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

learncpp-download's People

Contributors

amalrajan avatar dependabot[bot] avatar cuppajoeman avatar mushi0 avatar vlada1001 avatar pentabarf avatar p0358 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.