Skip to content

Instantly share code, notes, and snippets.

@rlskoeser
rlskoeser / oaipmh-count.py
Last active July 19, 2024 11:18
Script to count records returned by an OAI-PMH provider
#!/usr/bin/env python
"""
A simple command line script to count the number of records returned by an OAI-PMH provider
OAI-PMH protocol documentation: https://www.openarchives.org/OAI/openarchivesprotocol.html
To install dependencies:
pip install lxml requests beautifulsoup4

Keybase proof

I hereby claim:

  • I am rlskoeser on github.
  • I am suttonkoeser (https://keybase.io/suttonkoeser) on keybase.
  • I have a public key whose fingerprint is 2FA1 F3B7 C4D1 75AA 5047 EEB7 DB03 FB07 2878 158B

To claim this, I am signing this object:

@rlskoeser
rlskoeser / csv2georss.py
Last active December 12, 2015 01:48
Script to generate GeoRSS from CSV files generated by NameDropper lookup-names script. See http://disc.library.emory.edu/networkingbelfast/places-in-around-the-world-in-80-days/
#!/usr/bin/env python
# to get dependencies: pip install unicodecsv eulxml namedropper
# as of 2012/02/01 this requires the development version of namedropper,
# but should work with the 0.3 version once it is released
from collections import OrderedDict
import glob
import unicodecsv
from datetime import datetime