Skip to content

Download Chegg homework-help questions to self-sufficient HTML files

License

Notifications You must be signed in to change notification settings

ThreeGiantNoobs/chegg-scraper

Repository files navigation

NOTE

The Original Developers are no longer in a position to maintain this project. But we would still like to keep the project alive, thus any open source contribution from the community is more than welcome.


Chegg-Scrapper

Download Chegg homework-help questions to html files, these html files are self sufficient, you don't need account access to load them

Details
  • All files are saved to html document.
  • You will not need your chegg account to open these files later.
  • USE-CASES

    • In Bots You can share your chegg subscription with your friends, eg: by making discord bot
    • Saving Chegg Questions Locally

    Setup:

    • Download latest release

    • Install requirements pip install -r requirements.txt

    • Save your cookie in file cookie.txt (preferably)

      Using Browser Console
      • Log-in to chegg in your browser and open up the developer console. (cmd-shift-c or ctrl-shift-i)
      • Grab your cookies by typing
      • document.cookie
      • paste yout cookie from console into cookie.txt (without ")

      ​ Or

      Using Chrome Extenstion
      • Log-in to chegg in your web browser
      • Click Export and paste in cookie.txt
    • You may also need to change user-agent

      • Open conf.json and edit user_agent

        • Find your browser user agent

    Usage:

    • If you are new to python go here

    • Run the Downloader.py Script

      $ python Downloader.py
      
      Enter url of the homework-help:
    • Arguments

      ALL ARGUMENTS ARE OPTIONAL
      -u or --url      >   URL of Chegg
      -c or --cookie   >   Path of Cookie file (Defualt: cookie.txt)
      -s or --save     >   file path, where you want to save, put inside " "