You are reading a single comment by @rhb and its replies. Click here to read the full conversation.
  • It looks like it might be returning an xml rather than json file!

    Why would the dft make it not be json but say it is?

    Sometimes stuff is just documented badly unfortunately. Two things:

    1. you might be able to check the returned data type with print(response.headers['Content-Type'])
    2. you might be able to define the format you'd like the data returned in in the requests.get line, with another parameter (not 100% sure on this though i'm googling now as I'm procrastinating away from my budget spreadsheet...)
  • Thanks, that brings back text/xml as content type.

    Looks to be conversion scripts for local files so I'll try to adapt e.g. xmltodict might work.

About

Avatar for rhb @rhb started