Skip to content

Commit

Permalink
items ingestion + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Jun 30, 2023
1 parent 545d740 commit 5bd2da4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 129 deletions.
14 changes: 14 additions & 0 deletions stac/stac-generator/update_items.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import requests
from requests.auth import HTTPBasicAuth


catalog_url = "https://fairicube.github.io/data-requests/catalog.json"
post_url = "https://stacapi-write.eoxhub.fairicube.eu/collections/index/items"
index_catalog = requests.get(catalog_url).json()
for link in index_catalog["links"]:
if link["rel"] == "item":
json_body = requests.get(link["href"]).json()
response = requests.post(
url=post_url, json=json_body,
auth=HTTPBasicAuth(
'user', 'password'))
23 changes: 0 additions & 23 deletions yaml-generator/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions yaml-generator/requirements.txt

This file was deleted.

104 changes: 0 additions & 104 deletions yaml-generator/yaml-generator.py

This file was deleted.

0 comments on commit 5bd2da4

Please sign in to comment.