python Request library persistant session
I'm trying to getting data from a online calculator like this:
https://srv111.services.gc.ca/INT_02.aspx It requires filling out forms in
multiple pages.
I'm trying to use python Request library to do this but no luck. From how
I understand it,
import requests s = requests.Session()
then I go through each page and s.get(url1) r2 = s.post(url2,
data=payload) #payload is form data created by looking at page source ...
But it doesn't seem to work. When I print r2.text I should get the next
page but I get the same page. I'm pretty new to this stuff. Could someone
please point out my mistakes. Thank you a ton!!!
No comments:
Post a Comment