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

Linkedin changed course API?! #39

Open
Mehran91z opened this issue Jan 29, 2020 · 0 comments
Open

Linkedin changed course API?! #39

Mehran91z opened this issue Jan 29, 2020 · 0 comments

Comments

@Mehran91z
Copy link

Hi, it sounds like linkedin changed its API for fetching video information, This error happening after run script:

Traceback (most recent call last):
  File "linkedin_learning.py", line 263, in <module>
    loop.run_until_complete(process())
  File "C:\Python\Python38-32\lib\asyncio\base_events.py", line 608, in run_until_complete
    return future.result()
  File "linkedin_learning.py", line 251, in process
    await fetch_courses()
  File "linkedin_learning.py", line 112, in fetch_courses
    return await asyncio.gather(*map(fetch_course, COURSES))
  File "linkedin_learning.py", line 127, in fetch_course
    await fetch_chapters(course)
  File "linkedin_learning.py", line 153, in fetch_chapters
    await asyncio.gather(*chain.from_iterable(fetch_chapter(course, chapter) for chapter in course.chapters))
  File "linkedin_learning.py", line 164, in fetch_video_or_wait
    await fetch_video(course, chapter, video)
  File "linkedin_learning.py", line 192, in fetch_video
    video_url = data['elements'][0]['selectedVideo']['url']['progressiveUrl']
KeyError: 'url'

Can anyone please fix it?

@Mehran91z Mehran91z changed the title Linkedin Changed Json?! Linkedin Changed Course API?! Jan 29, 2020
@Mehran91z Mehran91z changed the title Linkedin Changed Course API?! Linkedin changed course API?! Jan 29, 2020
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

1 participant