This commit is contained in:
2023-11-26 16:20:05 +01:00
parent 7452978f65
commit 10e190c673
3 changed files with 19 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import re
import os
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
@@ -20,10 +21,11 @@ scripto=[]
#INPUT
#prende l url della pagina justeat del ristorante in input
#restaurant_url = input('link della pagina justeat del ristorante: ')
print ("\nesempio: https://www.justeat.it/restaurants-pizzeria-la-garganica-bologna/menu")
restaurant_url = input('INSERISCI IL LINK DELLA PAGINA DEL RISTORANTE: ')
#PER DEBUG
restaurant_url = 'https://www.justeat.it/restaurants-pizzeria-la-garganica-bologna/menu'
#restaurant_url = 'https://www.justeat.it/restaurants-pizzeria-la-garganica-bologna/menu'
#INIZIALLIZZO PARSER
@@ -168,4 +170,6 @@ html += "</body></html>"
# Salvataggio su file
with open("pagina.html", "w") as file:
file.write(html)
file.write(html)
os.remove("JEmenu.html")