Skip to content
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

抓去用户信息时不能判断是否是企业帐号 #40

Open
MythHack opened this issue Dec 11, 2014 · 2 comments
Open

抓去用户信息时不能判断是否是企业帐号 #40

MythHack opened this issue Dec 11, 2014 · 2 comments
Assignees

Comments

@MythHack
Copy link

在抓取信息的时候暂时还不能判断是否是企业帐号,如果是企业帐号的话信息就会为空了~应该是少了个if神马的

222

有时还会直接catch
get 1908349515 url: http://weibo.com/1908349515/info
Error when handle bundle: 1908349515, url: http://weibo.com/1908349515/info
ValidationError (WeiboUser:54888bf6c95f801b60bce315) (site.Invalid URL: http://w
eibo.com/376765750

http://weibo.com/linuxde: ['info'])
Traceback (most recent call last):
File "D:\cola\cola\job\executor.py", line 519, in _parse_with_process_exceptio
n
res = self._parse(parser_cls, options, bundle, url)
File "D:\cola\cola\job\executor.py", line 442, in _parse
**options).parse()
File "D:\cola\contrib\weibo\parsers.py", line 605, in parse
weibo_user.save()
File "E:\Tools\Script\Python27\lib\site-packages\mongoengine\document.py", lin
e 224, in save
self.validate(clean=clean)
File "E:\Tools\Script\Python27\lib\site-packages\mongoengine\base\document.py"
, line 323, in validate
raise ValidationError(message, errors=errors)
ValidationError: ValidationError (WeiboUser:54888bf6c95f801b60bce315) (site.Inva
lid URL: http://weibo.com/376765750

@qinxuye qinxuye self-assigned this Dec 11, 2014
@Qingmu
Copy link

Qingmu commented Jun 7, 2015

通过企业微博认证的微博,头像右下方有一个蓝底的大V标志,用firebug看到其节点class="W_icon icon_pf_approve_co",应该能通过class的这个属性去判断吧??

@qinxuye
Copy link
Owner

qinxuye commented Jun 7, 2015

应该是可以的,相关功能在develop merge到master后实现。

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

No branches or pull requests

3 participants