Coder Social home page Coder Social logo

get_doi_metadata's Introduction

Get bibliographic information for one DOI

Requirements

pip3 install crossref-commons

Usage:

>>> import cross_ref
>>> cross_ref.get_pub(doi)  #doi can be in any format with or without http://doi.org

Returns a Python dictionary with structure:

{
'author': [
   {'ORCID': 
        'http: //orcid.org/0000-0001-5966-6083', 
        'authenticated-orcid': True, 
        'given': 'Harrison J.', 
        'family': 'Cox', 
        'sequence': 'first', 
        'affiliation': [
            {'name': 'Department of Chemistry, Durham University, Durham DH1 3LE, England, U.K.'
            }
         ]
    },
    {'given': 'Gary J.', 
        'family': 'Sharples', 
        'sequence': 
        'additional', 
        'affiliation': [
            {'name': 'Department of Biosciences, Durham University, Durham DH1 3LE, England, U.K.'
            }
        ]
    },
    {'ORCID': 
        'http: //orcid.org/0000-0002-5086-5737', 
        'authenticated-orcid': True, 
        'given': 'Jas Pal S.', 
        'family': 'Badyal', 
        'sequence': 'additional', 
        'affiliation': [
            {'name': 'Department of Chemistry, Durham University, Durham DH1 3LE, England, U.K.'
            }
        ]
    }
], 
'title': ['Tea–Essential Oil–Metal Hybrid Nanocoatings for Bacterial and Viral Inactivation'
], 
'journal': ['ACS Applied Nano Materials'
], 
'issue': '11', 
'volume': '4', 
'pages': '12619-12628', 
'pub_year': 2021
}

Execute module as a script:

python3 cross_ref.py doi

Example 1:

python3 cross_ref.py 10.1021/acsanm.1c03151

Returns dictionary above.

Example 2:

python3 cross_ref.py http://doi.org/10.25250/thescbr.brk569

{
    'author': [
        {'given': 'Stefan', 'family': 'Szyniszewski', 'sequence': 'first', 'affiliation': []}, 
        {'given': 'Miranda', 'family': 'Anderson', 'sequence': 'additional' , 'affiliation': []}], 
    'title': ['Non-cuttable material inspired by seashells'], 
    'journal': ['TheScienceBreaker'], 
    'issue': '03', 
    'volume': '07', 
    'pages': '', 
    'pub_year': 2021
}

Example 3:

python3 cross_ref.py https://doi.org/10.1016/j.mtcomm.2023.105616

{
    'author': [
        {'given': 'O.', 'family': 'Duncan', 'sequence': 'first', 'affiliation': []}, 
        {'given': 'M.', 'family': 'Chester', 'sequence': 'additional', 'affiliation': []}, 
        {'given': 'W.', 'family': 'Wang', 'sequence': 'additional', 'affiliation': []}, 
        {'given': 'A.', 'family': 'Alderson', 'sequence': 'additional', 'affiliation': []}, 
        {'given': 'T.', 'family': 'Allen', 'sequence': 'additional', 'affiliation': []}], 
    'title': ['Effect of twist on indentation resistance'], 
    'journal': ['Materials Today Communications'], 
    'issue': '', 
    'volume': '35', 
    'pages': '105616', 
    'pub_year': 2023
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.