extract_session_cookie¶
- ciecplib.cookies.extract_session_cookie(jar, url)¶
Return a session cookie for the given URL from the jar.
- Parameters:
jar (
http.cookiejar.CookieJar) – the cookie jar to checkurl (
str) – the URL of the service that needs cookies
- Returns:
cookie (
http.cookiejar.Cookie) – the relevant cookie- Raises:
ValueError – if no appropriate cookie is found