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/env python3 | |
# pip install crossrefapi | |
from crossref.restful import Works | |
import requests | |
""" | |
Simple client for CrossRef DOI content negotiation | |
Tries to resolve a given DOI with CrossRef API. | |
If it fails (e.g. DOI is not minted by the CrossRef agency), |
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/env python3 | |
# pip install bagit | |
import os | |
import bagit | |
import shutil | |
def export_bagit(record_metadata, attachments): | |
pwd = os.getcwd() | |
dir = pwd + "/files_to_bag" |