Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

develop分支中微博parser出错 #33

@hitalex

Description

@hitalex

出错提示:

Error when handle bundle: 1644564144, url: http://weibo.com/aj/mblog/mbloglist?count=15&pre_page=2&uid=1644564144&end_id=3778591994786968&_t=0&_k=1416407703559230&__rnd=1416407854641&pagebar=1&max_id=3768747372034188&page=2
'NoneType' object has no attribute 'text'
Traceback (most recent call last):
File "/home/kqc/github/cola/cola/job/executor.py", line 504, in _parse_with_process_exception
res = self._parse(parser_cls, options, bundle, url)
File "/home/kqc/github/cola/cola/job/executor.py", line 430, in _parse
**options).parse()
File "/home/kqc/github/cola/contrib/kweibo/parsers.py", line 207, in parse
forwards = func_div.find('a', attrs={'action-type': action_type_re("forward")}).text
AttributeError: 'NoneType' object has no attribute 'text'

另外,@chineking 能否告知你是如何查看 http://weibo.com/aj/mblog/mbloglist?count=15&pre_page=2&uid=1644564144&end_id=3778591994786968&_t=0&_k=1416407703559230&__rnd=1416407854641&pagebar=1&max_id=3768747372034188&page=2 返回的数据的(用的什么工具,以后出错我也可以自行解决)?返回的数据似乎不能直接错位html直接显示。

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions