-
Notifications
You must be signed in to change notification settings - Fork 105
Error running #43
Comments
Same issue here!
|
same problem here. |
Same issue |
Mismo error alguien tiene una ejemplo del parámetro ? |
CsrfParam value not passed in body but is in cookie |
Hello, first of all I don't speak English so this discussion is an automatic translation (not by Google translate) but with https://www.deepl.com/ (long live of artificial intelligence and deeplearning) If someone is kind enough to rewrite what I wrote properly and send me what he did so that I don't do stupid things next time it'll be too kind. So for the code to work as usual just replace the "async def login(username, password)" function with this code.
good download to all and do not forget if you managed to optimize what I did do do not hesitate to contact me. |
Thank you @hamoudaalias very much this corrects the error by CSRF for now! |
After replacing the code I am getting an error: RuntimeError: Session is closed Could you help please? I don't know much about programming. Thank you,
|
When running the python linkedin_learning.py i get the errors :
2020-05-06 13:09:02,102 asyncio DEBUG Using proactor: IocpProactor
2020-05-06 13:09:02,107 root INFO [] -------------Login-------------
2020-05-06 13:09:02,108 root INFO [] Login step 1 - Getting CSRF token...
Traceback (most recent call last):
File "linkedin_learning.py", line 234, in
loop.run_until_complete(process())
File "C:\Python38\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "linkedin_learning.py", line 218, in process
await login(USERNAME, PASSWORD)
File "linkedin_learning.py", line 82, in login
csrf = html.xpath("//input[@name='loginCsrfParam']/@value").pop()
IndexError: pop from empty list
I am not using a proxy
The text was updated successfully, but these errors were encountered: