It should download the course. It is downloading other courses for me, but getting stuck in this particular course.
Actual behaviour
Building initial headers for future requests.
Getting initial CSRF token.
Found CSRF token.
Logging into Open edX site: https://courses.edx.org/login_ajax
Extracting course information from dashboard.
Traceback (most recent call last):
File "/opt/anaconda3/bin/edx-dl", line 10, in
sys.exit(main())
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/edx_dl.py", line 1023, in main
for selected_course in selected_courses}
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/edx_dl.py", line 1023, in
for selected_course in selected_courses}
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/edx_dl.py", line 186, in get_available_sections
sections = page_extractor.extract_sections_from_html(page, BASE_URL)
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/parsing.py", line 403, in extract_sections_from_html
for i, section_soup in enumerate(sections_soup, 1)]
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/parsing.py", line 403, in
for i, section_soup in enumerate(sections_soup, 1)]
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/parsing.py", line 372, in _make_url
return section_soup.a['href']
TypeError: 'NoneType' object is not subscriptable
🚨Please review the Troubleshooting section before reporting any issue. Don't forget also to check the current issues to avoid duplicates.
Subject of the issue
Describe your issue here.
Your environment
Steps to reproduce
edx-dl -i -u user@mail.net -p password https://courses.edx.org/courses/course-v1:MITx+18.6501x+2T2020/course/
Expected behaviour
It should download the course. It is downloading other courses for me, but getting stuck in this particular course.
Actual behaviour
Building initial headers for future requests. Getting initial CSRF token. Found CSRF token. Logging into Open edX site: https://courses.edx.org/login_ajax Extracting course information from dashboard. Traceback (most recent call last): File "/opt/anaconda3/bin/edx-dl", line 10, in
sys.exit(main())
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/edx_dl.py", line 1023, in main
for selected_course in selected_courses}
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/edx_dl.py", line 1023, in
for selected_course in selected_courses}
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/edx_dl.py", line 186, in get_available_sections
sections = page_extractor.extract_sections_from_html(page, BASE_URL)
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/parsing.py", line 403, in extract_sections_from_html
for i, section_soup in enumerate(sections_soup, 1)]
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/parsing.py", line 403, in
for i, section_soup in enumerate(sections_soup, 1)]
File "/opt/anaconda3/lib/python3.7/site-packages/edx_dl/parsing.py", line 372, in _make_url
return section_soup.a['href']
TypeError: 'NoneType' object is not subscriptable