Jul-10-2023, 06:32 AM
Hi!
I want to webscrape a value from my webpage and send it to a database every 5 minutes and upload it to grafana.
I have done the webscrape python:
I am not sure how to do it or how the python will look like.
I am also searching the internet about it.
I want to webscrape a value from my webpage and send it to a database every 5 minutes and upload it to grafana.
I have done the webscrape python:
import requests from bs4 import BeautifulSoup URL = "http://ludvikasegel.com/wx/cloudbase.asp" page = requests.get(URL) soup = BeautifulSoup(page.content, "html.parser") molnbas = soup.find_all("div", class_="cloudbase") print (molnbas[0].text.strip())I am thinking of SQlite3 database.
I am not sure how to do it or how the python will look like.
I am also searching the internet about it.