'Webscraping the food menu
I am trying to scrape the daily menu but I get everything else but the menu. I tried to insert everything including "left-div item-name" but that I get NONE. Any idea?
from bs4 import BeautifulSoup, Tag
import requests
import pandas as pd
from simple_colors import *
url = "http://www.restauraceumajeru.cz/denni-menu"
page = requests.get(url)
soup = BeautifulSoup(page.content, 'html.parser')
def daily_menu():
menu = soup.findAll("body")
for item in menu:
print(item.text)
daily_menu()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|