Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

IndexError: pop from empty list #44

Open
slotbite opened this issue May 15, 2020 · 2 comments
Open

IndexError: pop from empty list #44

slotbite opened this issue May 15, 2020 · 2 comments

Comments

@slotbite
Copy link

<Element html at 0x147f197a728>
Traceback (most recent call last):
  File "c:/Users/cvargasa/Documents/IMG/Scrapy/linkedin-learning-downloader/linkedin_learning.py", line 227, in <module>
    loop.run_until_complete(process())
  File "C:\Users\cvargasa\AppData\Local\conda\conda\envs\cnn - copia\lib\asyncio\base_events.py", line 468, in run_until_complete
    return future.result()
  File "c:/Users/cvargasa/Documents/IMG/Scrapy/linkedin-learning-downloader/linkedin_learning.py", line 211, in process
    await login(USERNAME, PASSWORD)
  File "c:/Users/cvargasa/Documents/IMG/Scrapy/linkedin-learning-downloader/linkedin_learning.py", line 83, in login
    csrf = html.xpath("//input[@id='loginCsrfParam-login']/@value").pop()
IndexError: pop from empty list
@liepaja
Copy link

liepaja commented May 25, 2020

Replace linkedin url with a sign up form url like "https://www.linkedin.com/login?fromSignIn=true&trk=guest_homepage-basic_nav-header-signin"

@MustafaUzun447
Copy link

How we replace? can you explain more?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants