Home

Awesome

Alt

Set operations – on twitter.

API

Check out the test.py file. It contains a basic usage example.

from tvvenn import Tvvenn

tokens = [
  ('token_name', 'app_key', 'app_secret'),
]
query = '@someone.followers & @someother.friends' # your complex set operations here.
tvvenn = Tvvenn(tokens)
result = tvvenn.run(query) # returns an array of users ids
print tvvenn.hydrate(result) # returns a fully hydrated response

Available operations:

Minimal REST API

Start it with

python server.py

And go to http://localhost:8000/

The available get params are:

e.g http://localhost:8000/?query=@javierhonduco.followers