Skip to content

A python script to save all sanfoundry mcqs / programs in a pdf file.

Notifications You must be signed in to change notification settings

falcon883/Sanfoundry-MCQ-Saver

Repository files navigation

Sanfoundry MCQ Saver

Saves all the mcqs in pdf file and also merges them.

Steps to run:

  1. Install required libraries:

    pip install -r requirements.txt
    
  2. Install wkhtmltopdf:

    • Windows

      Use binary installer, download from here

      OR

      If Chocolatey is installed

      choco install wkhtmltopdf
      
    • Debian/Ubuntu

      sudo apt-get install wkhtmltopdf
      
    • macOS

      brew install homebrew/cask/wkhtmltopdf
      
  3. Run the script

    python sanfoundry.py
    

Script uses below types of link.

For downloading single mcq page.

Single MCQ SET

For downloading all mcq sets.

Multiple MCQ SET

You can also use these types of link (Program Examples):

Program Sets: https://www.sanfoundry.com/c-programming-examples-stacks/

Single Programs: https://www.sanfoundry.com/c-program-stack-implementation/

Contributions

All contributions are welcome, as long as they are meaningful.

Contributors

Made with contributors-img.