<reponame>SweydManaf/estudos-python<filename>Automatize_tarefas_macantes/cap_11_WebScraping/testScraping.py
import requests
import bs4

res = requests.get('https://forecast.weather.gov/MapClick.php?lat=37.78873500000003&lon=-122.3945#.YgJD_rWHvhZ')
res.raise_for_status()

BioSoup = bs4.BeautifulSoup(res.text, features='html.parser')
weatherSoup = BioSoup.select('.myforecast-current-lrg')


print(weatherSoup[0].getText())
import requests
import bs4

res = requests.get('https://forecast.weather.gov/MapClick.php?lat=37.78873500000003&lon=-122.3945#.YgJD_rWHvhZ')
res.raise_for_status()

BioSoup = bs4.BeautifulSoup(res.text, features='html.parser')
weatherSoup = BioSoup.select('.myforecast-current-lrg')


print(weatherSoup[0].getText())
#.YgJD_rWHvhZ')