Answer the question
In order to leave comments, you need to log in
How to make python automatically press a button on a website using the requests library?
I am studying the python library and I want the bot to independently press a button on the site through the requests library. button tag. So what method should I call it or what else is there?
Answer the question
In order to leave comments, you need to log in
1. open web-developer tools in a browser on a page with a button
2. go to the Networks section
3. Click on the button and see the request (most likely POST)
4. Examine the request and try to do the same using requests
there is a selenium library that creates a virtual browser and you can do anything with it
documentation https://selenium-python.readthedocs.io/
installation https://selenium-python.com/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question