Can you try (based on https://stackoverflow.com/questions/8685790/adding-headers-to-requests-module):-
import requests headers = {'Accept': 'application/json'} url = 'https://data.bus-data.dft.gov.uk/api/v1/datafeed/1695/?api_key=***' response = requests.get(url, headers=headers) ...
Ah, I'll try this ta.
@Greenbank started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Can you try (based on https://stackoverflow.com/questions/8685790/adding-headers-to-requests-module):-