santhoshse7en / news-fetch

A Python Package which helps to scrape all news details from any news websites
MIT License
172 stars 110 forks source link

AttributeError: 'NoneType' object has no attribute 'text' #4

Closed MashodRana closed 3 years ago

MashodRana commented 3 years ago

I got AttributeError while trying to fetch URLs through google_search module:

My code is :

from newsfetch.google import google_search
google = google_search('coronavirus news', 'https://www.bbc.co.uk')
santhoshse7en commented 3 years ago

I have fixed all the errors in google.py Remember I have just made a simple version of the google search page scraper if more requests noted. Google will throw a captcha. The only thing we can do to solve the captcha uses VPN.

Install the latest version - https://pypi.org/project/news-fetch/

This package includes chromedriver-binary, please try to install chromedriver-binary that matches your current chrome browser version