In python you can set session by calling session object to store data.
See the bellow code:
# import requests module
import
requests
# create a session object
T
=
requests.Session()
# make a get request
# again make a get request
# check if cookie is still set
print
(U.text)
No comments:
Post a Comment