I have scraped some weather information onto my website and now want to put them into sqlite3 each time the weather page on my website refreshes. The problem I'm having is inserting the information into the database as the weather is already displaying on my website.
def weather_():
page = requests.get("https://www.bbc.com/weather/0/2562305")
soup = BeautifulSoup(page.content, 'html.parser')
today = soup.find('div',{'data-component-id' : 'forecast'})
temp = today.find(class_ = 'wr-day-temperature__low')
low_temp = (temp.get_text())
return low_temp