Effacer les filtres
Effacer les filtres

How do I grab data from an API that returns files in xml or json?

2 vues (au cours des 30 derniers jours)
T4H14
T4H14 le 13 Juil 2018
Commenté : Paolo le 13 Juil 2018
I'm working with a couple APIs for some needed data. One returns files in JSON and the other in xml. How do I then take that and either store the data in a format such as csv files for later use in a data store (I'm downloading a lot of data)? With the API that returns XML I can grab only one day of data at a time and I need to grab ~10 years worth of data. With the other API that returns data in json I can download roughly a years worth of data at a time and again I need to download about 10 years worth.
  1 commentaire
Paolo
Paolo le 13 Juil 2018
Have you tried using the following functions:
jsondecode for json
and xml2struct for xml ?

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by