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

Can you Please Move This project to Gitlab #40

Open
ethanmartin090 opened this issue Feb 23, 2020 · 1 comment
Open

Can you Please Move This project to Gitlab #40

ethanmartin090 opened this issue Feb 23, 2020 · 1 comment

Comments

@ethanmartin090
Copy link

I do not feel comfortable to report bugs here as linkedin learning is also a microsoft product like github. Can you please move this project to gitlab.

Being said that -

$ python3 linkedin_learning.py
2020-02-23 11:27:19,997 asyncio      DEBUG    Using selector: EpollSelector
2020-02-23 11:27:19,998 root         INFO     [*] -------------Login-------------
2020-02-23 11:27:19,998 root         INFO     [*] Login step 1 - Getting CSRF token...
2020-02-23 11:27:20,539 root         DEBUG    [*] CSRF: 3522bda6-54d6-41b8-8114-3e2052afee5e
2020-02-23 11:27:20,539 root         INFO     [*] Login step 1 - Done
2020-02-23 11:27:20,539 root         INFO     [*] Login step 2 - Logging In...
2020-02-23 11:27:21,272 root         INFO     [*] Login step 2 - Done
2020-02-23 11:27:21,274 root         INFO     [*] -------------Done-------------
2020-02-23 11:27:21,274 root         INFO     [*] -------------Fetching Course-------------
2020-02-23 11:27:22,172 asyncio      ERROR    Unclosed connection
client_connection: Connection<ConnectionKey(host='www.linkedin.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=-3461783210526392284)>
2020-02-23 11:27:22,172 root         INFO     [*] Fetching course Discovering Your Strengths
2020-02-23 11:27:22,174 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 7 Video no. 3
2020-02-23 11:27:22,174 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 2 Video no. 1
2020-02-23 11:27:22,174 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 7 Video no. 4
2020-02-23 11:27:22,175 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 1 Video no. 1
2020-02-23 11:27:22,175 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 8 Video no. 1
2020-02-23 11:27:22,176 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 1 Video no. 2
2020-02-23 11:27:22,176 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 3 Video no. 1
2020-02-23 11:27:22,177 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 2 Video no. 2
2020-02-23 11:27:22,177 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 3 Video no. 2
2020-02-23 11:27:22,177 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 3 Video no. 3
2020-02-23 11:27:23,027 root         INFO     [~] Writing 01 - Find career success and perform at your best.mp4
2020-02-23 11:27:23,041 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 4 Video no. 1
2020-02-23 11:27:23,048 root         INFO     [~] Writing 02 - What are strengths.mp4
2020-02-23 11:27:23,057 root         INFO     [~] Fetching course 'Discovering Your Strengths' Chapter no. 4 Video no. 2
Traceback (most recent call last):
  File "linkedin_learning.py", line 234, in <module>
    loop.run_until_complete(process())
  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "linkedin_learning.py", line 222, in process
    await fetch_courses()
  File "linkedin_learning.py", line 102, in fetch_courses
    return await asyncio.gather(*map(fetch_course, COURSES))
  File "linkedin_learning.py", line 116, in fetch_course
    await fetch_chapters(course)
  File "linkedin_learning.py", line 128, in fetch_chapters
    await asyncio.gather(*chain.from_iterable(fetch_chapter(course, chapter) for chapter in course.chapters))
  File "linkedin_learning.py", line 139, in fetch_video_or_wait
    await fetch_video(course, chapter, video)
  File "linkedin_learning.py", line 165, in fetch_video
    video_url = data['elements'][0]['selectedVideo']['url']['progressiveUrl']
KeyError: 'url'

It only create directories without files.

@ethanmartin090 ethanmartin090 changed the title Can you Please Move This to Gitlab - Create directories without files Can you Please Move This project to Gitlab Feb 23, 2020
@harpreettakhi
Copy link

I am also facing similar issue. It copies only directories without video files.

2020-03-10 09:27:17,617 asyncio DEBUG Using selector: EpollSelector
2020-03-10 09:27:17,618 root INFO [] -------------Login-------------
2020-03-10 09:27:17,618 root INFO [
] Login step 1 - Getting CSRF token...
2020-03-10 09:27:18,098 root DEBUG [] CSRF: 5123618b-f6e9-4e18-85c5-7de8cfa074a7
2020-03-10 09:27:18,098 root INFO [
] Login step 1 - Done
2020-03-10 09:27:18,098 root INFO [] Login step 2 - Logging In...
2020-03-10 09:27:18,837 root INFO [
] Login step 2 - Done
2020-03-10 09:27:18,837 root INFO [] -------------Done-------------
2020-03-10 09:27:18,838 root INFO [
] -------------Fetching Course-------------
2020-03-10 09:27:19,641 asyncio ERROR Unclosed connection
client_connection: Connection<ConnectionKey(host='www.linkedin.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=-3892578302447661594)>
2020-03-10 09:27:19,643 root INFO [*] Fetching course Applied Machine Learning: Foundations
2020-03-10 09:27:19,646 root INFO [] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 1 Video no. 1
2020-03-10 09:27:19,648 root INFO [
] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 1 Video no. 2
2020-03-10 09:27:19,649 root INFO [] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 1 Video no. 3
2020-03-10 09:27:19,651 root INFO [
] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 1 Video no. 4
2020-03-10 09:27:19,652 root INFO [] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 2 Video no. 1
2020-03-10 09:27:19,654 root INFO [
] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 2 Video no. 2
2020-03-10 09:27:19,656 root INFO [] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 2 Video no. 3
2020-03-10 09:27:19,658 root INFO [
] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 2 Video no. 4
2020-03-10 09:27:19,660 root INFO [] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 2 Video no. 5
2020-03-10 09:27:19,662 root INFO [
] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 2 Video no. 6
2020-03-10 09:27:20,376 root INFO [] Writing 04 - Using the exercise files.mp4
2020-03-10 09:27:20,381 root INFO [
] Fetching course 'Applied Machine Learning: Foundations' Chapter no. 3 Video no. 1
Traceback (most recent call last):
File "linkedin_learning.py", line 234, in
loop.run_until_complete(process())
File "/home/harpreet/anaconda3/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "linkedin_learning.py", line 222, in process
await fetch_courses()
File "linkedin_learning.py", line 102, in fetch_courses
return await asyncio.gather(*map(fetch_course, COURSES))
File "linkedin_learning.py", line 116, in fetch_course
await fetch_chapters(course)
File "linkedin_learning.py", line 128, in fetch_chapters
await asyncio.gather(*chain.from_iterable(fetch_chapter(course, chapter) for chapter in course.chapters))
File "linkedin_learning.py", line 139, in fetch_video_or_wait
await fetch_video(course, chapter, video)
File "linkedin_learning.py", line 165, in fetch_video
video_url = data['elements'][0]['selectedVideo']['url']['progressiveUrl']

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

2 participants