This commit is contained in:
augustin64 2024-12-01 17:37:24 +01:00
parent 909b0d3b40
commit aa71587aea

View File

@ -17,7 +17,7 @@ from bs4 import BeautifulSoup
home = str(Path.home())
with open(os.path.join(home, ".aoc-cookie"), "r", encoding='utf8') as file:
cookie = file.read()
cookie = file.read().replace("\n", " ").strip()
session = requests.Session()
session.cookies["session"] = cookie