Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Cookie Clicker Automation

This project automates the Cookie Clicker game using Selenium in Python. The script automatically clicks the big cookie and purchases products when enough cookies are collected.

image

Features

  • Automatically clicks the cookie continuously.
  • Purchases available products when enough cookies are accumulated.
  • Uses multi-threading to perform cookie clicking and product buying simultaneously.

Requirements

  • Python 3.x
  • Google Chrome
  • ChromeDriver: Make sure the version of ChromeDriver matches your installed version of Chrome. Download ChromeDriver here.
  • Selenium: Install via pip.

Installation

  1. Clone this repository or download the files.

  2. Install the required Python libraries:

    pip install selenium
  3. Download the appropriate version of ChromeDriver for your system and place it in the project directory or somewhere in your PATH. Update the executable_path in the code with your ChromeDriver path.

Usage

  1. Update ChromeDriver Path: Ensure that the executable_path is correct in the script:

    service = Service(executable_path="/path/to/chromedriver")
  2. Run the script:

    python main.py

How It Works

  • Click Cookie Function: Continuously clicks the big cookie and prints the current number of cookies in the console.
  • Buy Products Function: Periodically checks if there are enough cookies to buy a product and buys the most affordable product.
  • Threading: Clicks the cookie and buys products simultaneously using two separate threads.
image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages