diff --git a/main.py b/main.py new file mode 100644 index 0000000..06ce130 --- /dev/null +++ b/main.py @@ -0,0 +1,9 @@ +import requests + +api_endpoint = "https://uk.api.just-eat.io/discovery/uk/restaurants/enriched/bypostcode/EC4M7RF" +headers = { + 'User-Agent': 'Mozilla/5.0' +} +response = requests.get(url=api_endpoint, headers=headers) +api_data = response.json() +print(api_data) \ No newline at end of file