Last active
August 29, 2015 14:21
-
-
Save glortho/50f04c89e0cc5d147325 to your computer and use it in GitHub Desktop.
Gnip Powertrack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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