papers.doi module

papers.doi.doi_to_crossref_identifier(doi)[source]

Returns an internal OAI identifier for the DOI. >>> doi_to_crossref_identifier(u‘10.1093/jhmas/xxxi.4.480’) u’oai:crossref.org:10.1093/jhmas/xxxi.4.480’

papers.doi.doi_to_url(doi)[source]

Takes a (valid) doi and returns its resolving URL >>> doi_to_url(u‘10.1093/jhmas/xxxi.4.480’) u’https://doi.org/10.1093/jhmas/xxxi.4.480

papers.doi.to_doi(candidate)[source]
>>> to_doi('http://dx.doi.org/10.1145/1721837.1721839')
u'10.1145/1721837.1721839'
>>> to_doi('https://doi.org/10.1145/1721837.1721839')
u'10.1145/1721837.1721839'
>>> to_doi('10.1145/1721837.1721839')
u'10.1145/1721837.1721839'
>>> to_doi('DOI: 10.1145/1721837.1721839')
u'10.1145/1721837.1721839'
>>> to_doi('info:eu-repo/semantics/altIdentifier/doi/10.1145/1721837.1721839')
u'10.1145/1721837.1721839'
>>> to_doi('10.1093/jhmas/XXXI.4.480')
u'10.1093/jhmas/xxxi.4.480'