Skip to content

Instantly share code, notes, and snippets.

@rsirres
Created August 31, 2018 09:20
Show Gist options
  • Save rsirres/677309ceb008eeb69c087eabe5d325fd to your computer and use it in GitHub Desktop.
Save rsirres/677309ceb008eeb69c087eabe5d325fd to your computer and use it in GitHub Desktop.
Test Requests
import requests
URL = "https://www.doabooks.org/oai?verb=ListRecords&from=2012-01-01&metadataPrefix=marcxml"
#URL = "https://publishing.cdlib.org/ucpressebooks/oai?verb=ListRecords&set=public&metadataPrefix=oai_dc"
#headers = {'Host': 'www.doabooks.org:443'}
r = requests.get(URL, verify=True)
print( r.text )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment