update
This commit is contained in:
10
scrapeje.py
10
scrapeje.py
@@ -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")
|
||||
Reference in New Issue
Block a user