1
0

Web-cache
All checks were successful
Test Python / Test (push) Successful in 26s

This commit is contained in:
Jon Michael Aanes 2024-06-02 17:02:04 +02:00
parent 4f13d45056
commit 157a8d55a1
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -199,7 +199,7 @@ def get_session(cookiejar, *, with_cfscrape: bool) -> requests.Session:
session_class = requests_cache.CachedSession session_class = requests_cache.CachedSession
if cfscrape: if cfscrape:
session_class = CachedCfScrape session_class = CachedCfScrape
session = session_class('web_cache', cookies=cookiejar) session = session_class('output/web_cache', cookies=cookiejar)
for cookie in cookiejar: for cookie in cookiejar:
session.cookies.set_cookie(cookie) session.cookies.set_cookie(cookie)
return session return session