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.
- 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.
To set up and use AviatorStratChecker, follow these simple steps:
-
Create a Virtual Environment:
python -m venv .venv
-
Activate the virtual environment:
#on Windows .venv\Scripts\activate
#on Linux source .venv/bin/activate
-
Install required packages:
pip install -r requirements.txt
-
Create a file named creds.py and add your login credentials:
username = "your-email" password = "your-password"
-
Install docker and docker-compose:
-
Run Selenium using Docker:
docker-compose up
-
Execute the script to start gathering live results:
python scrape.py
-
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
-
Edit the checker.py script to test your new strat
-
Run the checker.py script to test your strat:
python checker.py
- 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, )
- Run the autobet.py script to start betting:
python autobet.py
- 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
We welcome contributions! If you encounter any issues or have suggestions, please open an issue or submit a pull request.