A Flask app for querying DuckDuckGo via text messages (SMS).
Getting the server running with virtualenv and gunicorn looks something like this:
$ git clone git://github.com/rpicard/text-ddg.git
$ cd text-ddg
$ virtualenv env
$ . env/bin/activate
$ pip install -r requirements.txt
$ gunicorn app:app -p text-ddg.pid -b 0.0.0.0:8000 -DYou can deploy it as you would any other Flask app, this is just what I used.
To get going, you'll need to set up a phone number on Twilio. Leave the voice URL blank and set the SMS request URL to the server where the app will be running and the method to GET. When someone sends a text to the number, Twilio will send a GET request to your application and respond to the sender with the SMS specified by this application.
You can text my server at 813-419-1902 for an example.
Copyright (c) Robert Picard
All rights reserved.
Licensed under the MIT license.