A Python web api to see how many times you use 'naughty' words on twitter.
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
static
.gitignore
Procfile
README.markdown
dictionary.py
naughty_or_nice.py
requirements.txt
tweet_analyzer.py
tweeter.py
twitter.py

README.markdown

Naughty or Nice

This is a simple web app written in Python using Flask. It's main point is simply to give me a chance to play with Python (and Flask) some. I guess it's secondary point is fun. The idea is that (once I write a frontend), you'll be able to go to the site, enter a twitter username, and then be told how 'naughty' that person has been lately on twitter. (Where 'naughty' will have something to do with how often they use 'dirty' words. Where that list is fairly arbitrary. 😄)

The backend of the system (this portion) is responsible for routing virtually all requests to a static html page (where a JavaScript based frontend does most of the work). The only real heavy lifing is at the `/api/naughty_count/' endpoint.

$ curl localhost:5000/api/naughty_count/charlietanksley
{"username": "charlietanksley", "naughty_count": 8}
$ curl localhost:5000/api/naughty_count/dhh
{"username": "dhh", "naughty_count": 4}

You can see I'm naughtier than DHH. (I found this surprising.)