Giter VIP home page Giter VIP logo

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/

Execution

Pre-requisites: 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

  1. Local (recommended)

    Requires Python 3.10.

    git clone https://github.com/amalrajan/learncpp-download.git
    cd learncpp-download
    pip install -r requirements.txt
    
  2. 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.

Usage

python main.py

The PDF files will get downloaded into a newly created "downloads" folder, right under "source" directory.

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 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.