python requests add cookies to session code example
Example: python session set cookies
import requests
s = requests.session()
s.cookies.set("COOKIE_NAME", "the cookie works", domain="example.com")
# Domain is optinal
import requests
s = requests.session()
s.cookies.set("COOKIE_NAME", "the cookie works", domain="example.com")
# Domain is optinal