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

Linkedin changed course API?! #39

@Mehran91z

Description

@Mehran91z

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions