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
{ | |
"logo": "https://www.metmuseum.org/-/media/images/exhibitions/2020/gifts-in-celebration-of-the-anniversary/new-png/met150_webassets_mediumrotation_landingpage_480x480.png", | |
"description": "", | |
"label": "DP157297", | |
"sequences": [ | |
{ | |
"canvases": [ | |
{ | |
"height": 7210, | |
"images": [ |
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
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"@id": "met_iiif_annotation_list_test.json", | |
"@type": "sc:AnnotationList", | |
"resources": [ | |
{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@type": "cnt:ContentAsText", |
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 bagit | |
import os | |
import asyncio | |
root_path = "/Users/thiesm/Desktop/test_bags/" | |
class BulkValidate: | |
#this method prints all paths and checksums and validates the bag | |
def verify_bag(self, bag): |
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
manifest.json | |
{ | |
"manifest_version": 2, | |
"name": "NetX - wrappify", | |
"description": "This extension will remove truncation from all fields in curator view", | |
"version": "0.0.0.1", | |
"author": "Milo Thiesen - Lead Technical Analyst - Metropolitan Museum of Art", | |
"background": { | |
"scripts": ["jquery-3.3.1.min.js","background.js"] | |
}, |
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 pprint | |
arr = [{ | |
"codec": "MPEG", | |
"wrapper": "mov", | |
"commerical": "Pro Res" | |
}, | |
{ | |
"codec": "MPEG-4", | |
"wrapper": "mp4", |
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 os | |
import sys | |
import subprocess | |
import lxml.etree as ET | |
import pprint | |
rootdir = sys.argv[1] | |
accepted_file_types = ['mov', 'mp4', 'm4v', 'wmv'] | |
files_list = [] | |
formats_list = [] |
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
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"@id": "http://fe6f2d2c-56ea-4428-8a5e-0baf9205f36f", | |
"@type": "sc:Manifest", | |
"label": "[Click to edit label]", | |
"metadata": [], | |
"sequences": [ | |
{ | |
"@id": "http://97d1aef1-cb91-4913-9ab4-ff1a32ec54f5", | |
"@type": "sc:Sequence", |
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
### need to copy to DEST without overwriting and add a -1 if its the first one and -2 if its the second....is my script right? check with multiple files for one stop. | |
### need to write to a new csv that contains metadata for the headers listed below | |
import os | |
import os.path | |
import sys | |
import shutil | |
import csv | |
import subprocess |
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
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' |
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
#!/usr/bin/python | |
import csv | |
import sys | |
filename = sys.argv[1] | |
# destination = sys.argv[2] | |
titles = [] | |
met = " MET " |
NewerOlder