Skip to main content

GNIP for Python.

Project description

===============
GNIP for Python
===============

GNIP for Python provides an easy way to access the PowerTrack stream provided by GNIP.

#!/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!

Project details


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.1.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file gnippy-0.1.1.tar.gz.

File metadata

  • Download URL: gnippy-0.1.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gnippy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e441ed1f535dc71a860a1871c66caa1c9e90a0f021281a1ed6d386b7fd2b0429
MD5 74b63e5b8be36db85e73c54298c4c261
BLAKE2b-256 8c1829e1d18e05819aa8a00ee88758dbbb03eafbd8c503c8fe5b5cd164085544

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page