From c1a6c67feafa29d21d652d4fe84674bf5c62ae36 Mon Sep 17 00:00:00 2001 From: pluja Date: Mon, 12 Oct 2020 09:52:20 +0200 Subject: [PATCH] Fix for look dict typo --- youtube/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube/util.py b/youtube/util.py index 3f00fd6..4b2125a 100644 --- a/youtube/util.py +++ b/youtube/util.py @@ -102,7 +102,7 @@ def decode_content(content, encoding_header): def bypass_captcha(session, response, url, cookies): print("vvv COOKIES DICT vvv") - cookies = [{c.name: c.value} for c in cookies] + cookies = [{c['name']: c['value']} for c in cookies] inputs = {} html = BeautifulSoup(str(response.text), "lxml")