import mysql.connector from bs4 import BeautifulSoup import re # ---------- CONFIG ---------- # MySQL connection settings (fill in) MYSQL_CFG = dict( host="192.168.1.76", port=3307, user="root", password="Vlado9674+", database="medevio", ) conn=mysql.connector.connect(**MYSQL_CFG) cur=conn.cursor() cur.execute("select html from kartoteka_html where 'fetched-at'=(SELECT MAX('fetched-at') FROM kartoteka_html)") html=cur.fetchone() html=html[0] # html is the string containing the entire web page soup = BeautifulSoup(html, "html.parser") # Find every