2.5 KiB
050 - Tinder auto find match
Day 50 of 100 Days of Code: The Complete Python Pro Bootcamp. A Selenium bot that logs in to TinDog (the course's Tinder clone, https://app.100daysofpython.dev/), dismisses the pop-ups and likes profiles. It is a modernised version of the earlier solution.
Wiki (what each step teaches): English · Dansk · Bahasa Malaysia
Be honest with the people you date: tell them you automate your swiping. TinDog allows 20 likes a day, Tinder 100 on the free tier.
Run
python -m venv .venv && .venv/Scripts/activate # Windows; use bin/activate on Linux
pip install -e ".[dev]"
cp .env.example .env # then fill in your own values
python -m tinder_bot
python -m pytest # unit tests
Credentials come from environment variables (FACEBOOK_EMAIL,
FACEBOOK_PASSWORD); .env is git-ignored. Sign in manually once so the
Chrome profile in .data/ remembers the session and phone verification.
Layout
| Path | Purpose |
|---|---|
src/tinder_bot/steps.py |
one function per lecture step |
src/tinder_bot/locators.py |
every XPath in one place |
src/tinder_bot/config.py |
settings from the environment |
tests/unit/ |
tests with a fake driver |
tests/e2e/ |
mock TinDog site and Docker runner that produces the screenshots |
Steps and screenshots
Screenshots are produced by tests/e2e against a local mock of TinDog, run in
Docker (never on the host desktop), into docs/screenshots/.
Status: the screenshot files are generated by the Docker run; see
tests/e2e/README.md.








