Skip to content

Instantly share code, notes, and snippets.

View Ambrosiani's full-sized avatar

Aron Ambrosiani Ambrosiani

View GitHub Profile
@Abbe98
Abbe98 / ugc-csv-import.py
Last active July 24, 2022 12:48
Python script for importing CSV to ugc.kulturarvsdata.se
import csv
from ksamsok import KSamsok
from sochugc import UGC
api_key = input('Please enter your API key: ')
file_name = input('The name of input CSV: ')
username = input('Which username would you like to use: ')
soch = KSamsok()
@Abbe98
Abbe98 / soch.js
Last active March 2, 2020 18:45
Detta är ett ganska minimalt exempel på användning av SOCH
// Detta är ett ganska minimalt exempel på användning av SOCH
// Notera att det saknas felhantering vid HTTP fel
// Notera även att sochSearch() inte stödjer paginering och att den använder presentationsformatet
// Det går att klistra in detta exempel direkt i webbläsarens konsol
// Det går inte att göra frågor från andra HTTPS resurser
// hjälp funktion för att göra http frågor och parsa JSON
const fetchSoch = async (url) => await (await fetch(url, { headers: new Headers({ 'Accept': 'application/json' }) })).json();
// funktion för att göra en enkel sökning

Project Title

Project description goes here. This should include:

  • Is this project currently being used in production?
  • If not, what was its purpose? Is it an ongoing experiment or deprecated code?

How this Fits

  • What's the role this code plays in the org's ecosystem?

Getting Started