I am trying to use python to scrape the names of restaurants from a website. I'm having a hard time figuring out which exact div class to target and then how to write the code to do the scraping. I have successfully written the code for other webpages but can't figure it out for this one.
I am targetting this webpage: https://www.broadsheet.com.au/melbourne/fitzroy
Here is what I have tried:
soup_rest_list = BeautifulSoup(html_rest, 'html.parser')
type(soup_rest_list)
rest_container = soup_rest_list.find_all(class_="venue-teaser-list format-horizontal VenueTeaserListWrapper-sc-13dcca9-1 fIcGQi", "h2", class_="venue-title")
I'm not getting much love though. Right now when I execute my code I just get a []
Any help greatly appreciated.