To get google news

What is web scrapping?

import requests

from bs4 import BeautifulSoup



search="news"

url=f'https://www.google.com/search?&q={search}'

r=requests.get(url)

s=BeautifulSoup(r.text,'html.parser').get_text()



print(s)