Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set cookie in python requests

import requests

cookies = {'enwiki_session': '17ab96bd8ffbe8ca58a78657a918558'}

r = requests.post('http://wikipedia.org', cookies=cookies)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #cookie #python #requests
ADD COMMENT
Topic
Name
5+3 =