A simple Tinder automation bot.
There are many other bots out there, but many are quite complex (automated login, stat collection, etc.). This bot aims to be as simple as possible, and by doing so, (hopefully) be robust and easy to troubleshoot.
All browser cache data are stored locally, so once you log in once, you should stay logged in. After that, the logic is simple:
graph LR
P(Entry \npoint) --> A(Wait for \nlike button) --> B(Like or \ndislike based \non probability)
B -->|if success| D[sleep \nrandom time]
B -->|if error| E[Reload page]
D --> B
E --> A
Safety net: If an error occurs twice in a row, the app will stop
conda create -n tbot python=3.10
conda activate tbot
conda install -r requirements.txt
python app.py
If you get the error:
urllib.error.HTTPError: HTTP Error 404: Not Found
it may be that your package is out of date. The chromedriver uses the browser installed on your computer. As your browser updates, you may need to update the package as well. To do this run:
pip install undetected-chromedriver -U
Based on: ultrafunkamsterdam/undetected-chromedriver#1511
If you would like to change any values, you can adjust the parameters at the beginning of the app.py
file.
# parameters
chance_to_like = .93
min_wait_time = .5
max_wait_time = 2
max_wait_for_like_button = 240