From ef1884445af70ad1f69112fa9b8a36059446b4fd Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Sat, 6 Apr 2019 18:54:49 +0200 Subject: [PATCH] pls --- server/nightr/strategies/just_eat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/nightr/strategies/just_eat.py b/server/nightr/strategies/just_eat.py index eba6193..1c31e49 100644 --- a/server/nightr/strategies/just_eat.py +++ b/server/nightr/strategies/just_eat.py @@ -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'}))