i have this error - OSError: [Errno 63] File name too long:
what is the best way to work around this?
import requests
import json
import codecs
url = 'https://ratings.food.gov.uk/OpenDataFiles/FHRS314en-GB.json'
response = requests.get(url)
text = response.text
data = json.load(codecs.open(text, encoding='utf8'))
print('data', data)