import requests s = requests.session() s.cookies.set("COOKIE_NAME", "the cookie works", domain="example.com") # Domain is optinal