I am creating a web scraper for different news outlets, for Nytimes and the Guardian it was easy since they have their own API.
Now, I want to scrape results from th
hi you can scrap like this with easy way
from bs4 import BeautifulSoup import requests url="https://news.google.co.in/" code=requests.get(url) soup=BeautifulSoup(code.text,'html5lib') for title in soup.find_all('span',class_="titletext"): print title.text