Covid -19 datasets

Hello
I work with a new collection about covid-19 in Patagonia Argentina.
and I would like produce a dataset .
Is possible in omeka-s
thanks
gus

Hi Gus,
I do this regularly with my site by writing a little python script that queries the API for all the items in a set. The materials come out as json, and then I convert them to CSV.

Since my site has lots of items, I have to temporarily set the items per browse page number in the installation settings up quite high to get all of the data out in one query because the API will only give you a single page of results.

Hope that helps.
Sharon

Thanks very much for your answer.
is possible access to script? Sharon

Sure. It’s very simple.

import requests
r = requests.get("http://yoursiteurl.org/api/items?=&item_set_id=1")

# fill in your site url and append your search query to the api
# set the name of your output file

with open('filename.json','w') as fd:
    fd.write(r.text)

another question
Is possible integrate Omeka S with Ckan ?
thanks
Gus

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.