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
Fix AttributeError: 'HTMLParser' object has no attribute 'unescape' #789
base: master
Are you sure you want to change the base?
Conversation
1 similar comment
The python 3.3 tests fails, but this relates to the requirement urllib3 >= 1.23. |
it works in python 3.9.1, thanks... |
In the file '....\appdata\local\programs\python\python39\lib\site-packages\coursera\utils.py'
by just putting an # before it so it looks like
and add
immediately below it. Then you need to comment out any occurrence of
again by putting an # in front of it, so it looks like
and put
immediately below it. I had to do it twice in the utils.py file. |
I m getting error |
I was getting HTMLparser error and I used add # and text as suggested abovee. after that I m getting such error |
@ismail709, please do not pollute pull requests by adding comments that only describes the very few changes proposed in the commit. Such is of absolutely no value to the developer that evaluates the proposed changes. Further, it apparently leads to comments that refers to your comment instead of the proposed changes. |
Having issues downloading without CAUTH, I used CAUTH ( |
I followed @ismail709 and it started working. Not sure what @heino is talking about since they did help solve the issue... |
@mahyarmirrashed, this is a Pull Request with explicitly proposed code changes: c8796e5 For some random reason, @ismail709 added a comment describing how he solved the issue by by applying these changes line by line. @mahyarmirrashed, if you don't know what a pull request is either, please read up on git. You might prefer reading following a how-I-applied-the-pull-request-manually guide rather than by simply taking a look at the proposed coded changes yourself, but you only further pollute this pull request by validating an alternative description that was not even committed. Now please stop this nonsense! |
a short update: on Archlinux with 3.9.7 @heino s patch works. If you are on Archlinux, read my comment on AUR - coursera-dl-git to install coursera-dl with this patch. |
Thanks @heino! It works on 3.9.7 on macOS. |
You can directly install from this patch by @heino
|
It seems this patch fails in Python 3.3.x... |
Fixes #778 |
Indeed, but that was already mentioned on 27 Dec 2020, and is not directly related to this issue:
|
I updated the util.py file and still get the same error: "File "/XXX/env/lib/python3.9/site-packages/coursera/utils.py", line 118, in clean_filename The line s = h.unescape(s) is not on 118 and I already set h = html before that line. Any suggestions? Thanks! |
Proposed changes
Execution with Python 3.9 generated the following error:
This it due to the following:
Types of changes
Checklist
Further comments
Reviewers