Skip to content

charlietanksley/naughty_or_nice

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 

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.)

About

A Python web api to see how many times you use 'naughty' words on twitter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published