Saturday, 29 September 2018

How to save requests (python) cookies to a file?

How to use the library requests (in python) after a request

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
bot = requests.session()
bot.get('http://google.com')

to keep all the cookies in a file and then restore the cookies from a file.



from How to save requests (python) cookies to a file?

No comments:

Post a Comment