kajweb / wqxuetang_downloader

文泉学堂、悦读下载器 | 2020-02-16网站不再公益开放阅读,项目失效。
MIT License
219 stars 119 forks source link

http解决后,请问怎么解决name的问题?:name 'http' is not defined #37

Closed ynlsg closed 4 years ago

ynlsg commented 4 years ago

C:\Users\ynlsg\wqxuetang_downloader10>python main.py C:\Users\ynlsg\wqxuetang_downloader10\cookies.txt Traceback (most recent call last): File "main.py", line 13, in initUrllib(); File "C:\Users\ynlsg\wqxuetang_downloader10\utils.py", line 17, in initUrllib cookie = http.cookiejar.LWPCookieJar() NameError: name 'http' is not defined

ynlsg commented 4 years ago

问题看错了,还是http的问题。。

kajweb commented 4 years ago

utils.py 增加 import http.cookiejar 即可。