edx-dl icon indicating copy to clipboard operation
edx-dl copied to clipboard

AttributeError: 'HTMLParser' object has no attribute 'unescape'

Open FrankWorldview opened this issue 1 year ago • 3 comments

Subject of the issue

Output directory: Downloaded Traceback (most recent call last): File "D:\edx-dl\edx-dl.py", line 8, in edx_dl.main() File "D:\edx-dl\edx_dl\edx_dl.py", line 1261, in main download(args, selections, all_units, headers) File "D:\edx-dl\edx_dl\edx_dl.py", line 993, in download course_name = directory_name(selected_course.name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\edx-dl\edx_dl\utils.py", line 52, in directory_name result = clean_filename(initial_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\edx-dl\edx_dl\utils.py", line 126, in clean_filename s = h.unescape(s) ^^^^^^^^^^ AttributeError: 'HTMLParser' object has no attribute 'unescape'

FrankWorldview avatar Oct 02 '23 22:10 FrankWorldview

Thank you very much. The script can run now.

However, in the "Downloaded" folder, I can only see many subfolders that are empty. There are no html files downloaded. Is this normal?

FrankWorldview avatar Oct 05 '23 01:10 FrankWorldview