5 ms·
If you need a more stateful version of requests: import requests session = requests.session() # now use session like you would requests session
by sonofgod 6y ago
If you need a more stateful version of requests:
import requests
session = requests.session()
# now use session like you would requests
session.get("http://httpbin.org/cookies/set/name/value")
print(session.get("http://httpbin.org/cookies").content)
- catwind7 6y agooh I need to try that - I had this feeling that there was a more stateful version but for ..... some reason ... reaching for a new dependency felt easier at the time haha. Thanks