This script automates the gameplay of the Cookie Clicker game available at https://orteil.dashnet.org/cookieclicker/.
Before running the script, make sure you have the following installed:
- Python
- Selenium library (
pip install selenium
) - ChromeDriver (which is managed automatically by
webdriver_manager
)
The script performs the following tasks:
- Opens the Cookie Clicker game page.
- Handles the initial pop-up window if it appears.
- Clicks the language selection button if available.
- Starts clicking the cookie to accumulate cookies.
- Automatically purchases available products when sufficient cookies are available.
- Clone or download the script.
- Make sure you have Python and the required libraries installed.
- Run the script using the Python interpreter (
python cookie_clicker.py
).
- The script continuously clicks the cookie to accumulate cookies and automatically purchases products whenever enough cookies are available.
- It handles stale element reference exceptions that may occur during the automation process.
- Make sure to keep the Chrome window open while the script is running.