rohithpr / py-web-search

A Python module to fetch and parse results from different search engines.
MIT License
77 stars 26 forks source link

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

Open ccarlo21 opened 8 years ago

ccarlo21 commented 8 years ago

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)