Skip to content

added wolfram alpha to examples #3

Merged
merged 1 commit into from Nov 18, 2012
+7 −0
View
7 src/b1_example.py
@@ -110,6 +110,13 @@ def bugcongress(self, arg):
else:
return "http://www.congress.org/congressorg/officials/congress/"
+ def wa(self, arg):
+ """Searches Wolfram Alpha or goes there"""
+ if arg:
+ return "http://www.wolframalpha.com/input/?i=%s" % qp(arg)
+ else:
+ return "http://www.wolframalpha.com/"
+
def wikinvest(self, arg):
"""Searches Wikinvest or goes there"""
if arg:
Something went wrong with that request. Please try again.