Skip to content

Instantly share code, notes, and snippets.

@glortho
Last active August 29, 2015 14:21
Show Gist options
  • Save glortho/50f04c89e0cc5d147325 to your computer and use it in GitHub Desktop.
Save glortho/50f04c89e0cc5d147325 to your computer and use it in GitHub Desktop.
Gnip Powertrack
#!/bin/sh
"exec" "twxec" "-e" "stream()" "$0" "$@"
from trickle.gnip import PowerTrackStream
user = {{string User_Name}}
account = {{string Account_Name}}
password = {{password Account_Password}}
config = {{string GNIP_Rules_Configuration}}
def stream():
with PowerTrackStream(user, password, account, config) as stream:
for tweet in stream:
yield tweet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment