GithubHelp home page GithubHelp logo

Retrieve article through url? about ads HOT 2 CLOSED

andycasey avatar andycasey commented on May 25, 2024
Retrieve article through url?

from ads.

Comments (2)

jonnybazookatone avatar jonnybazookatone commented on May 25, 2024

I assume your Zotero entry has an identifier for your article to give the URL (i.e., a bibcode).

For example:
https://ui.adsabs.harvard.edu/#abs/2016LPI....47.2774E/abstract
or
http://adsabs.harvard.edu/abs/2016LPI....47.2774E
The documents identifier (bibcode) in this case is 2016LPI....47.2774E

If so, you can use this client to get the bibtex:

>>> import ads
>>> e = ads.ExportQuery(bibcodes=['2016LPI....47.2774E'], format='bibtex')
>>> print e.execute()

@INPROCEEDINGS{2016LPI....47.2774E,
   author = {{Elliott}, J. and {Huang}, Y.-H. and {Minton}, D.~A. and {Freed}, A.~M.
        },
    title = "{The Length of Lunar Crater Rays Explained Using Secondary Crater Scaling}",
booktitle = {Lunar and Planetary Science Conference},
     year = 2016,
   series = {Lunar and Planetary Science Conference},
   volume = 47,
    month = mar,
    pages = {2774},
   adsurl = {http://adsabs.harvard.edu/abs/2016LPI....47.2774E},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

The README has several examples.

from ads.

Gabriel-p avatar Gabriel-p commented on May 25, 2024

Thanks @jonnybazookatone. I'm thinking on adding an intermediate function to resolve full urls that come from ads, arXiv, doi, stacks.iop.org, and some main journals.

It would be ideal (for my workflow) to just paste whatever url I have at hand and expect the ADS bibtex.

from ads.

Related Issues (20)

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.