Gnip API wrapper
Project description
Gnip API 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
)
print(g.get_rules())
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():
print(line)
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
python-gnip-0.0.1.tar.gz
(3.4 kB
view hashes)