Fix for look dict typo

This commit is contained in:
pluja 2020-10-12 09:52:20 +02:00
parent 438374890d
commit c1a6c67fea

View File

@ -102,7 +102,7 @@ def decode_content(content, encoding_header):
def bypass_captcha(session, response, url, cookies): def bypass_captcha(session, response, url, cookies):
print("vvv COOKIES DICT vvv") print("vvv COOKIES DICT vvv")
cookies = [{c.name: c.value} for c in cookies] cookies = [{c['name']: c['value']} for c in cookies]
inputs = {} inputs = {}
html = BeautifulSoup(str(response.text), "lxml") html = BeautifulSoup(str(response.text), "lxml")