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:
| #!/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 |
I hereby claim:
To claim this, I am signing this object:
| #!/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 |
| #!/usr/bin/env python | |
| # fedora 4 test client | |
| # NOTE: this is experimental / spike code!! | |
| # (written to get a sense of the fedora 4 LDP API) | |
| import requests | |
| import rdflib | |
| DC = rdflib.Namespace('http://purl.org/dc/elements/1.1/') |
| #!/usr/bin/env python | |
| # git post-commit hook for linking git commits to asana tasks | |
| # (inspired / adapted in part from https://github.com/Darunada/git-asana-post-commit-hook) | |
| # | |
| # Tested with Python 2.7 and Python 3.5 | |
| # | |
| # INSTALLATION | |
| # - Copy this script to .git/hooks/post-commit in your local repository | |
| # (be sure the script is executable) |
| #!/usr/bin/env python | |
| # Script to scrape all links from a site, compile counts of each link, status | |
| # codes of access and output the results as a CSV | |
| # | |
| # There's absolutely no reason this shouldn't be pulled into an OOP paradigm | |
| # per se, but I left it functionalized because that can be easier for multitasking. | |
| # | |
| # Requirements: | |
| # requests, bs4 |
| #!/usr/bin/env python | |
| # Based on sample script from https://programminghistorian.org/en/lessons/sonification#miditime | |
| # currently written for python2; miditime only goes up to python 3.4 | |
| # pip install miditime | |
| import csv | |
| from collections import defaultdict |
| #!/usr/bin/env python | |
| ''' | |
| Script to parse data DH Q&A archive. | |
| Install python dependencies: | |
| pip install beautifulsoup4 feedparser | |
| Clone DH Q&A archive repository: |
| #!/usr/bin/env python | |
| # pip install google-cloud-vision | |
| # Follow quick start instructions to set up access to the API and authentication | |
| # https://pypi.org/project/google-cloud-vision/ | |
| import glob | |
| import io | |
| import os |