skip to navigation
skip to content

Not Logged In

gnippy 0.1.2

Python library for GNIP.

Latest Version: 0.3.6

gnippy provides an easy way to access the Power Track stream provided by GNIP.

Installation:

pip install gnippy

Usage:

#!/usr/bin/env python

import time
from gnippy import PowerTrackClient

# Define a callback
def callback(activity):
    print activity

# Create the client
url = "http://my.gnip.powertrack/url.json"
auth = ('MyUserName', 'MyPassword')
client = PowerTrackClient(url, auth, callback)
client.connect()

# Wait for 2 minutes and then disconnect
time.sleep(120)
client.disconnect()

That's it!

Source available on GitHub

 
File Type Py Version Uploaded on Size
gnippy-0.1.2.tar.gz (md5) Source 2012-12-06 1KB
  • Downloads (All Versions):
  • 43 downloads in the last day
  • 327 downloads in the last week
  • 1014 downloads in the last month