This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
import requests | |
# Load the JSON data | |
json_file_path = 'data.json' | |
with open(json_file_path, 'r') as file: | |
data = json.load(file) | |
# Base URL from the DiMu API documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bookmarklet som hämtar resultat från aktuell sökning på tidningar.kb.se och lägger i urklipp. Lägg som bokmärke i webbläsaren! | |
javascript:(function() { | |
var csv = 'date,newspaper,page,url\n'; | |
var results = document.querySelectorAll('.result'); | |
results.forEach(function(result) { | |
var newspaper = result.querySelector(".title-text").textContent; | |
var date = result.querySelector(".date").textContent; | |
var url = "https://tidningar.kb.se" + result.querySelector(".image img").getAttribute("src").replace("_thumb.jpg", "/"); | |
var parts = url.split("/"); | |
var page = parts[parts.length - 2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bookmarklet som hämtar årtal och antal träfflistar från aktuell sökning på tidningar.kb.se och lägger i urklipp. Lägg som bokmärke i webbläsaren! | |
javascript:(function() { | |
var csv = 'year,count\n'; | |
var bars = document.querySelectorAll('.bar.year'); | |
bars.forEach(function(bar) { | |
var dataDate = bar.getAttribute('data-date'); | |
var year = new Date(dataDate).getFullYear(); | |
var count = bar.getAttribute('data-count'); | |
csv += year + ',' + count + '\n'; | |
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"artifact.defaultPictureIndex": 1355, | |
"artifact.ingress.title": "Självporträtt av Thorvald Gehrman, spelande violin, 1905.", | |
"artifact.uniqueId": "021016320698", | |
"artifact.ingress.license": [ | |
"CC pdm" | |
], | |
"artifact.ingress.production.place": "okänd ort", | |
"artifact.publishedDate": "2016-03-17T15:01:27.219Z", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta name="apple-itunes-app" content="app-id=583046550"> | |
</head> | |
<body> | |
<h1>test test</h1> | |
</body> | |
</html> |