Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FrankWorldview opened this issue Oct 2, 2023 · 3 comments
Open

Comments

@FrankWorldview
Copy link

FrankWorldview commented Oct 2, 2023

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'

@csyezheng
Copy link

@FrankWorldview
Copy link
Author

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?

@csyezheng
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants