-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
py2.7 什么时候支持? #7
Comments
本地py27测试通过了。你不能运行吗,贴出错误看一下。 |
可以运行了。msglist = re.findall("var msgList = '(.+?)';", text, re.S)[0]出问题,查看了,是搜狗要求验证码。 |
2.7.9 下测试 $ python test.py
Traceback (most recent call last):
File "test.py", line 8, in <module>
wechats = WechatSogouApi()
File "/Users/yjin/mango/codes/WechatSogou/wechatsogou/api.py", line 17, in __init__
super().__init__(**kwargs)
TypeError: super() takes at least 1 argument (0 given) |
@dearrrfish 已修复 |
img_code = input("please input code: ") 验证码不是字符型吗? |
你好,首先十分感谢你这个project。我的Python版本是2.7.9,在跑test.py的时候出现了api.py 198行gzh_info['url'] has no attribute 'getitem'的问题。我稍微看了一下,是因为search_gzh_info这个function没有获得任何内容,返回了一个空的list。里面所有的page.xpath(xxx)所返回的内容也都是空的,但是第40行的text我print出来确实取得了完整的html代码。不知道是xpath的那个module的版本还是什么导致的?麻烦告知一下解决方法,万分感谢! |
感谢作者!在使用test.py的时候,测试前几个功能都没有问题,但是在搜索获取热门文章的时候,logging提示TypeError: not all arguments converted during string formatting,使用的python版本是2.7.11 |
py2.7 什么时候支持?
The text was updated successfully, but these errors were encountered: