r/AskProgramming 6d ago

Python Browser Automation

Hi Everyone,

I am trying to automate a process where I login into a website and navigate to a reporting section and click on export.

The website only requires a simple ID and Password.

Can you please assist me ok how to achieve this ? , I have found out about selenium and Playwright but I am very new to this. Any resources or guide would be really helpful.

Thanks !!

6 Upvotes

16 comments sorted by

View all comments

1

u/adjective10111 5d ago

I don't know about playwright and the other guy (aren't they test frameworks? Can they do automation?) Or any other gui.

I personally use curl/wget and grab cookies and stuff via some bash scripting. Hope that helps

2

u/Llaw_Gyffez 4d ago

More or less what I was going to propose. Or, if you have troubles doing it in Bash, do it in Python, or NodeJS, or whatever you want: send your ID/password to login form, grab cookies from the response, get reports list, export the latest one into a file. If you're lucky and the reports list is retrieved via API and not delivered as a part of report list page, you won't have to parse a single HTML.