I can't figure out why I'm not getting the letters æøå from my response. ø = \Ø The documentation on the api says utf-8 and I've checked that r.encoding is utf-8
header = {'Client-Identifier': 'test'}
r = requests.get(url='https://gbfs.urbansharing.com/oslobysykkel.no/station_information.json'
you can use request.json, response is basically in json.
header = {'Client-Identifier': 'test'}
r = requests.get(url='https://gbfs.urbansharing.com/oslobysykkel.no/station_information.json')
print(r.json())
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.