import requests
from bs4 import BeautifulSoup
url = 'https://g1.globo.com/'
response = requests.get(url)
html = response.text
soup = BeautifulSoup(html, 'html.parser')
titulos_noticias = soup.find_all('a', {'class': 'feed-post-link'})
for titulo in titulos_noticias:
print(titulo.text)