This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Gnip Powertrack Wrapper

Project Description

Gnip PowerTrack Wrapper

Installation

Method with pip: if you have pip installed, just type this in a terminal (sudo is optional on some systems)

pip install python-gnip

Method by hand: download the sources, either on PyPI or (if you want the development version) on Github, unzip everything in one folder, open a terminal and type

python setup.py install

Usage

Rules

from gnip import Gnip
g = Gnip(YOUR_ACCOUNT_NAME,
        login=YOUR_EMAIL,
        password=YOUR_PASSWORD
        source="twitter"
)
print(g.get_rules())

Add and Delete rules

from gnip import Gnip
g = Gnip(YOUR_ACCOUNT_NAME,
        login=YOUR_EMAIL,
        password=YOUR_PASSWORD
        source="twitter"
)
# Add 2 rules
g.add_rules([{"value":"rule1","tag":"tag1"}, {"value":"rule2"}])
# Delete 2 rules
g.delete_rules([{"value":"rule1","tag":"tag1"}, {"value":"rule2"}])

Stream

from gnip import Gnip
g = Gnip(YOUR_ACCOUNT_NAME,
        login=YOUR_EMAIL,
        password=YOUR_PASSWORD
)
s = g.connect_stream()
for line in s.iter_lines():
    if line:
        print(line)
Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python_gnip-0.0.2-py2-none-any.whl (5.4 kB) Copy SHA256 Checksum SHA256 py2 Wheel Feb 22, 2017
python-gnip-0.0.2.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 Source Feb 22, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting