Python Click Button With Requests
I have been trying to 'click' a button on a site with the requests module on a website, but I can't get it working. This is the button on the site:
import requests
s=requests.session()
url_login=''
url_data=''
payload={'**strong text**':'usrname','Password':'pswd'}
request1=s.post(url_login,data=payload) # thisis to pass the
request2=s.get(url_data)
As for clicking a button, you may need to find out the action behind the button. There might be a handler against an element Id.
Post a Comment for "Python Click Button With Requests"