Help me deploy and schedule a Python Selenium script with headless Chrome and proxy
lacouette
PROOP
a year ago
I have a Python 3.11 script that:
- Launches a headless Chrome browser (via Selenium), with an authenticated residential proxy (using selenium-wire or a dynamic Chrome extension)
- Navigates to ai.invideo.io, clicks “Join with Google,” completes the OAuth login
- Extracts access/refresh tokens from
localStorageand updates a MySQL database - Loads all secrets (proxy credentials, Gmail password, DB password) from a
.envfile
I’ve already tested and confirmed the script works locally and via CLI on Railway.
What I need help with is deploying it properly as a Railway cron task that runs automatically every 6 hours and reliably executes the script each time, in a headless environment that supports Chrome, Selenium, proxy auth, and MySQL.
3 Replies
quadstrikesecurity
FREE
a year ago
use docker for your solution
sim
FREE
a year ago
A dockerfile as @quadstrikesecurity suggested may be a good solution for this
sim
FREE
a year ago
This takes effort. If you confirm and this is a go, I will make it