[Solved] Browser automation self-hosted: python example for initial login
i have a use case where i need to login to substack manually using my username and password. then followed by my TOTP MFA code.
once that's done, i want the rest of the browser automation take over in terms of downloading invoices.
I found https://www.windmill.dev/docs/advanced/browser_automation but the examples are all not python.
I used claude and tried
what happens is
I am running locally using docker in my macOS laptop M1
how do i solve this?
I am on the Pro Plan trial period.
11 Replies
Do you have a worker with chromium installed ?
how does that work? do i install it inside the docker image provided by windmill or it's another docker image?
you can uncomment windmill_worker_reports inside the docker compose, it's a worker with the worker group chromium which will install chromium on start
this is my script
when i run it, i get
given my original idea which is that
i need to login to substack manually using my username and password. then followed by my TOTP MFA code.
once that's done, i want the rest of the browser automation take over in terms of downloading invoices.
is that even possible in windmill self-host?
I will investigate tomorrow, typescript should work though
thank you. i am more familiar with python
for your use case, you could try using an approval step in a flow, but you need to find a way to save the browser state in the first step so that you can restart from there in the next step
I don’t understand what you said
Can we do a simpler version even if it’s only a fraction of what I said I wanted to do?
How about just make chromium worker fetch something from a public web page first when using python?
i got the chromium worker going for python
Thank you
i will create a separate thread about my bigger question of how to interact with the chromium for login
nice! sorry hadn't had time to look at it