Skip to content

AviatorStratChecker is a robust tool that scrapes historical data from the Aviator game on 22bet. It includes a script for easy data collection, allowing users to create, test, and refine strategies without using actual funds

Notifications You must be signed in to change notification settings

luisrx7/AviatorStratChecker

Repository files navigation

AviatorStratChecker

Ruff build

AviatorStratChecker Cover

Welcome to the AviatorStratChecker repository! This project aims to provide a powerful script for efficiently scraping data from the Aviator game on 22bet. By utilizing the scraped data, you can develop and test your own strategies against historical results without the need to wager any real money. We encourage your active participation by opening issues and submitting pull requests to enhance the project.

Features

  • Effortlessly scrape Aviator game data from 22bet.
  • Design, simulate, and fine-tune strategies using historical data.
  • Automatically bet using your own strategies.
  • Collaborate with the community by contributing to the project.

Getting Started

To set up and use AviatorStratChecker, follow these simple steps:

  1. Create a Virtual Environment:

    python -m venv .venv
  2. Activate the virtual environment:

    #on Windows
    .venv\Scripts\activate
    #on Linux
    source .venv/bin/activate
  3. Install required packages:

    pip install -r requirements.txt
  4. Create a file named creds.py and add your login credentials:

    username = "your-email"
    password = "your-password"
  5. Install docker and docker-compose:

  6. Run Selenium using Docker:

    docker-compose up
  7. Execute the script to start gathering live results:

    python scrape.py

To test Strategies

  1. Edit the file strats/custom_strats.py to add your strategies:

    class ExampleStrat(Strat):
    
     def on_win(self):
         super().on_win()
    
         self.bet = self.base_bet * 1.5
    
     def on_lose(self):
         super().on_lose()
         
         self.bet = self.base_bet
  2. Edit the checker.py script to test your new strat

  3. Run the checker.py script to test your strat:

    python checker.py

After finding a good strategy

  1. Edit the file autobet.py to add your strategy:
    from strats.custom_strats import BestStrat
    
    def main():
     strat = BestStrat(
         description="BestStrat - Example",
         start_balance=3000,
         base_bet=0.1,
         max_bet=0.5,
         multiplier=1.9,
         max_bets=10000,
     )
  2. Run the autobet.py script to start betting:
    python autobet.py

TODO

  • Add tests to the existing Strats
  • Add tests to the code
  • Find some way to scrape past data from the game (maybe using requests)
  • Add a way to save the data to a database instead of a csv file
  • Add a way to compare strategies
  • Add better indicators to the strategies to help the user to decide which one to use

Contributing

We welcome contributions! If you encounter any issues or have suggestions, please open an issue or submit a pull request.

About

AviatorStratChecker is a robust tool that scrapes historical data from the Aviator game on 22bet. It includes a script for easy data collection, allowing users to create, test, and refine strategies without using actual funds

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages