A Python utility that provides a CLI for WolframAlpha.
- Keyboard history navigation, much like a shell. By default, queries are stored in
~/.queryHistory
. - Blacklist that can exclude certain sections (according to their titles on the website) from the output. Note that image-based results are already ignored.
pip3 install colorama
- Sign up for a WolframAlpha account
- Navigate to the developer portal
- Click the My Apps tab, then the Get an AppID button
- Type in an application name and description—it can be anything
- The AppID that is presented is your API key
- Copy the key into the
apiKey
variable ofwa.py
- If command-line arguments are provided, anything after the program name will be treated as a query.
- If they are not, you will be prompted for a single query.
- The
-c
flag may be used to enter continuous mode, which will continue to ask for queries untilCtrl-C
is pressed.