Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

HtmlParser not having unescape attribute error while downloading #571

Closed
@alokverma75

Description

@alokverma75

[i] : Downloading subtitle(s)
[i] : Downloading (001 Course Agenda.id)
[*] : 13.46KB/13.46KB 100.00% |##############################| 10.62kB/s
[i] : Downloaded (001 Course Agenda.id)
Traceback (most recent call last):
File "D:\Downloads\udemy-dl-1.0\udemy-dl-1.0\udemy-dl.py", line 606, in
main()
File "D:\Downloads\udemy-dl-1.0\udemy-dl-1.0\udemy-dl.py", line 576, in main
udemy_obj.course_download(
File "D:\Downloads\udemy-dl-1.0\udemy-dl-1.0\udemy-dl.py", line 361, in course_download
self.downalod_subtitles(
File "D:\Downloads\udemy-dl-1.0\udemy-dl-1.0\udemy-dl.py", line 123, in downalod_subtitles
self.convert(filename=filename, keep_vtt=keep_vtt)
File "D:\Downloads\udemy-dl-1.0\udemy-dl-1.0\udemy\vtt2srt.py", line 105, in convert
timecode = self._generate_timecode(seq, unescapeHTML(line))
File "D:\Downloads\udemy-dl-1.0\udemy-dl-1.0\udemy\utils.py", line 196, in unescapeHTML
data = clean.unescape(s)
AttributeError: 'HTMLParser' object has no attribute 'unescape'

I am using Python version 3.9. If any specific version of python is required for this like 2.7?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions