参考: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_parser
html = html_parser.HTMLParser()
4.注释掉utils.py中 h = html_parser.HTMLParser()
如:# h = html_parser.HTMLParser()
5.在# h = html_parser.HTMLParser()下方添加h = html
如:
# h = html_parser.HTMLParser()
h = html
6.保存,完成