Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python library for GNIP
tag: v0.1.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gnippy
.gitignore
CHANGES.txt
LICENSE.txt
MANIFEST.in
README.rst
setup.py

README.rst

gnippy: GNIP + Python

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: http://github.com/abh1nav/gnippy/

Something went wrong with that request. Please try again.