当前位置: 代码迷 >> 综合 >> coursera-dl 报错 AttributeError (‘HTMLParser’ object has no attribute ‘unescape’)
  详细解决方案

coursera-dl 报错 AttributeError (‘HTMLParser’ object has no attribute ‘unescape’)

热度:36   发布时间:2024-01-06 01:14:54.0

参考:https://www.organizingcreativity.com/2021/01/downloading-coursera-materials/

1.找到utils.py位置
*/site-packages/coursera/utils.py

2.注释掉from six.moves import html_parser
如:# from six.moves import html_parser

3.在注释掉的下方添加

import sys
if sys.version_info[0] >= 3:import html
else:from six.moves import html_parserhtml 
  相关解决方案