pls
This commit is contained in:
parent
7147e1734b
commit
ef1884445a
|
@ -9,7 +9,7 @@ requests_cache.install_cache("requests_cache", expire_after=timedelta(minutes=10
|
|||
def is_restaurant_open(name):
|
||||
headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'}
|
||||
r = requests.get("https://www.just-eat.dk/area/8000-århusc")
|
||||
r = requests.get("https://www.just-eat.dk/area/8000-århusc", headers=headers)
|
||||
soup = BeautifulSoup(r.content, features='html5lib')
|
||||
print(soup.prettify())
|
||||
print(soup.find('div', {'class': 'listing-group'}))
|
||||
|
|
Loading…
Reference in New Issue
Block a user