from lookup.CrossRef import CrossRef fout = open("crossref_author_details.txt", "w") def banner(msg): print >> fout, 70 * "=" print >> fout, msg print >> fout, 70 * "=" author = 'Gregor von Laszewski' banner("crossref author details json") print >> fout, CrossRef.crossref_author_search(author, kind="json")
def banner(msg): print 70 * "=" print msg print 70 * "=" banner("doi turtle") print DOI.doi_get("10.1109/GCE.2010.5676126", kind="turle") banner("doi bibtex") print DOI.doi_get("10.1109/GCE.2010.5676126") banner("doi json") pprint(DOI.doi_get("10.1109/GCE.2010.5676126", kind="json")) banner("ieee xml") print IEEE.ieee_doi_get("10.1109/GCE.2010.5676126", kind="xml") banner("ieee json") print IEEE.ieee_doi_get("10.1109/GCE.2010.5676126", kind="json") banner("orcid xml") print ORCID.orcid_doi_get("10.1109/GCE.2010.5676126", kind="xml") banner("orcid json") print json.dumps(ORCID.orcid_doi_get("10.1109/GCE.2010.5676126", kind="json"), indent=2) banner("crossref json") pprint(CrossRef.crossref_doi_get("10.1109/GCE.2010.5676126", kind="json"))