Skip to content

An ADS tool for Python that doesn't suck(tm)

Andy Casey edited this page Aug 11, 2013 · 15 revisions

Brainstorming page.

Requirements:

  • Some python tool that will let you search through ADS easily, and return papers as objects

  • Each paper will have attributes that any sane person would want to use (e.g. paper.bibtex)

  • Should be able to search with as little or as much information as possible, and it should take "human-readable" search inputs. Example

    • year=2002 for just 2002
    • year='2002..' or year='2002-' for since 2002
    • year='2002-2008' or year=(2002, 2008) for 2002 to 2008
    • year=[2002,2003,2008] for any one of those years
    • months should "just work", too: year=2002.01 or 2002.1 for January, YYYY.13 should return an exception
    • year='2002..3' should 'just work'.
  • sort flag for when querying, and when we have a list of papers returned

  • There are ~3-4 different ADS servers around the world. Sometimes one will be down while others are up. Code should be smart enough to switch servers if shit goes down.

  • All inputs on the ADS search page should be accessible for a 'normal search'

  • Fuzzy logic searching would be 💪 (maybe something like "Griff?n+ 2009")

  • Perhaps create list of useful functions:
    • get a citation tree starting from a particular paper traversing back n-levels --> citation_tree(<bibcode>, depth=N) would return a list of papers. If depth > 1, then each would have an attribute called .cites which would list the bibcodes that each paper cites.

    • get top X % cited papers between two years (default=allyears) --> something like search(sort='citations', order='desc', years='2002..03', n=X, refereed=True)?

    • get top X % cites indexed by country/institute --> search(institute='mein institute', sort='citations', order='desc', years='2002..03', n=X, refereed=True)

    • get citation tree for a given keyword + traverse back X years

    • get top X authors indexed by different measured (h-factor, total cites etc.) --> hmm, could do this with a sort_by and order but it would need to get unique authors. Maybe it would be enough to do papers = search(sort='h_factor', order='desc', n=X); unique_authors_by_h_factor = set([paper.authors[0] for paper in papers])

Clone this wiki locally