Skip to content

Instantly share code, notes, and snippets.

@skreuzer
Created December 23, 2014 21:28
Show Gist options
  • Save skreuzer/02eb2ab01a158c5a2776 to your computer and use it in GitHub Desktop.
Save skreuzer/02eb2ab01a158c5a2776 to your computer and use it in GitHub Desktop.
Query Wolfram Alpha
#!/usr/local/bin/python
#-*- coding: utf-8 -*-
import wolframalpha
import sys
app_id = 'XXXXXXXX-XXXXXXXXXX'
client = wolframalpha.Client(app_id)
res = client.query(' '.join(sys.argv[1:]))
print(next(res.results).text)
sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment