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

AttributeError: 'NoneType' object has no attribute 'find_all' #23

Open
ccarlo21 opened this issue Jun 11, 2016 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'find_all' #23

ccarlo21 opened this issue Jun 11, 2016 · 0 comments

Comments

@ccarlo21
Copy link

ccarlo21 commented Jun 11, 2016

This happen when the query is "strange" or maybe too long or syntactically wrong. For example "ASD adasmd asidjkasd" or "All euro2016 matches of the year" (with no space between Euro and 2016). It can't find related queries. I have handled this by commenting :

if related_queries == []:
    related_queries = Bing.scrape_related(soup)

(Ln:113 and Ln:114 of bing.py)

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

No branches or pull requests

1 participant