Skip to content

Harry-kp/cheggbot

Repository files navigation

Cheggbot

Cheggbot Logo

Bored of skipping questions and "No more questions in queue" message and looking for an automation script? Congrats, you are in the right place.


Built with Python3


Table of Contents


Subscribe to Our Channel

If you find this script useful, please consider subscribing to our channel for more updates. We need your support to grow our channel.

Subscribe Here

Subscribe on YouTube

Features

  • Keyword-based skipping of questions.
  • Randomization in time while skipping to prevent getting blocked.
  • Sends alerts on Telegram when an answerable question is found.
  • Sleeps for a longer period when the queue becomes empty.

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

Setup

To set up the project:

  1. Open the terminal and navigate to the cheggbot directory.

    cd path/to/cheggbot
  2. (Optional) Create a virtual environment for this project. Instructions

  3. Install the project's dependencies.

    pip install -r requirements.txt
  4. Open the config.yaml file in a text editor and fill in the required details:

    • keywords: List of keywords to skip.
    • cookie: Your browser's cookie (See How to get a cookie).
    • wait_time: Time in seconds to wait before skipping a question.
    • wait_after_queue_is_empty: Time in seconds to wait when the queue becomes empty.
    • telegram: If you want Telegram notifications (See How to get chat_id and token).

Usage

To run the script:

  1. Open the terminal and navigate to the cheggbot directory.

  2. Run the script using Python 3.

    python3 script.py
  3. If everything is set up correctly, the script will start running.

Script Running

FAQ

How to Get a Cookie?

  1. Open the link https://expert.chegg.com/expertqna.
  2. Log in to your account.
  3. Open the network tab and refresh the page. Network Tab
  4. Click on any graphql request.
  5. Under Request Headers, you will find the cookie. Copy and paste it into config.yaml.

How to Get chat_id and token?

Check this guide: How to Make an API Call to the Telegram Channel

Contributing

To contribute to this project:

  1. Fork the repository.

  2. Create a new branch.

  3. Make your changes.

  4. Create a pull request.

  5. Wait for review and approval.

Future Plans

  • Better ways to identify good questions and bad questions.
  • Support for auto-refreshing the cookie.
  • Add support for different notification methods.

Disclaimer

This is a research project. The developer is not responsible for any usage of this tool. Use it on your own behalf. The developer is also not responsible if your accounts get banned due to extensive use of this tool.

If you encounter any issues or have questions, please open an issue on this repository.

About

Automates the task of skipping or answering a question on chegg.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages