Python library for GNIP.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gnippy-0.1.2.tar.gz
(1.9 kB
view details)
File details
Details for the file gnippy-0.1.2.tar.gz
.
File metadata
- Download URL: gnippy-0.1.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83bbde2a0dd1d9a3d82c9162351d8348769246135303e6782ed4ea9f22990476 |
|
MD5 | a396aa644d4d03960ded14ad62fb3c62 |
|
BLAKE2b-256 | cc3afae09c1dbee8d17f0749bed5e68daec893ed6e5d058789c1662bbb2f8678 |