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

fix empty elem in get_elem_text #197

Merged
merged 1 commit into from
May 5, 2018
Merged

fix empty elem in get_elem_text #197

merged 1 commit into from
May 5, 2018

Conversation

calmzealA
Copy link
Contributor

some gzh in sogou api do not have a description. which raise a error in tools.get_elem_text.

try crawl gushequ

some gzh in sogou api do not have a description. which raise a error in tools.get_elem_text.
@calmzealA
Copy link
Contributor Author

部分公众号,如gushequ在搜狗的搜索结果页面,结构和普通公众号不一致,没有功能描述 等。
导致tools里面get_elem_text函数的迭代部分报错。加一个非空判断就好了

@chyroc chyroc changed the title bugfix fix empty elem in get_elem_text May 5, 2018
@chyroc chyroc merged commit cfd3d39 into chyroc:master May 5, 2018
chyroc added a commit that referenced this pull request May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants