Hacker News new | ask | show | jobs
by sonofgod 2195 days 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)
1 comments

oh 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