5 months 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 databaseLoads 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
5 months ago
use docker for your solution
5 months ago
A dockerfile as @quadstrikesecurity suggested may be a good solution for this
5 months ago
This takes effort. If you confirm and this is a go, I will make it