Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python requests-session for websites wihout login

# import requests module
import requests
 
# create a session object
s = requests.Session()
 
# make a get request
s.get('https://httpbin.org / cookies / set / sessioncookie / 123456789')
 
# again make a get request
r = s.get('https://httpbin.org / cookies')
 
# check if cookie is still set
print(r.text)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #websites #wihout #login
ADD COMMENT
Topic
Name
7+2 =