Coder Social home page Coder Social logo

adsabs.alfredworkflow's Introduction

An Alfred Workflow to search SAO/NASA ADS

With the deprecation of the classic SAO/NASA Astrophysics Data System (ADS) search interface, I wanted to improve my workflow for searching for papers in the astronomy literature. I find that I generally just want to do author based searches with possible year constraints so I made this Workflow that can be used by Alfred (tested in versions 3 and 4) to make this fast and easy.

Workflow Screenshot

Installation

First you'll need to get Alfred and buy the Powerpack. Then you can download the adsabs.workflow file from the Releases page. Double click to import that into Alfred.

You can also install the development version of the workflow by cloning this repository into the ~/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows directory.

To get all the features out of this worflow, you should also install Andy Casey's ads library. Then you can either put your API key in the ~/.ads/dev_key file or set it using the ADS_API_KEY variable in the workflow interface.

By default Alfred uses the system Python, but you can change that by putting the path to your favorite Python executable in the ADS_PYTHON variable.

Usage

To get started you can just open Alfred and type ads to start searching. This workflow is designed to search authors and years only. For example, if you want to search for papers by an author named "Spergel" in 2015, you can execute:

ads spergel 2015

If you only want to search for the first author, use:

ads ^spergel 2015

You can list multiple authors, if you want:

ads ^mandel agol 2002

Or year ranges:

ads ^mandel agol 2000 2004

And you can include first names, initials, etc. using quotes:

ads "^mandel, k" "agol, e" 2000 2004

Issues

If you run into any problems, please report the issue on GitHub.

License

Copyright 2019 Dan Foreman-Mackey.

This is free software made available under the MIT License. For details see the LICENSE file.

adsabs.alfredworkflow's People

Contributors

dfm avatar

Watchers

 avatar

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.