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!

simple facebook parsing

Project Description

zuckup ====== simple facebook parsing

Install

pip install zuckup

Test

Requires nose

nosetests

Usage

zuckup comes with three utilities: insights, page, and page_stats

Insights

NOTE: To get facebook insights data you must first have an access token that has necessary credentials to view this data.

import zuckup

for post_stats in zuckup.insights(page_id='authenticated_page'):
  print post_stats

Page Posts

import zuckup

for post in zuckup.page(page_id='nytimes')
  print post

Page Stats

import zuckup

page_stats = zuckup.page_stats(page_id='nytimes')
print page_stats

Authentication

zuckup will automatically connect to the facebook api via facepy if you have FB_APP_ID and FB_APP_SECRET set as environmental variables.

Alternatively, you can connect beforehand and pass in this connection via the kwarg conn:

import zuckup

conn = zuckup.connect(app_id='12345', app_secret='678910')

page_stats = zuckup.page_stats(page_id='nytimes', conn=conn)
print page_stats

Finally, if you want to connect with just an access token, say one acquired from a user authenticating to your app, pass in access_token to any of the methods:

import zuckup

page_stats = zuckup.page_stats(page_id='nytimes', access_token='a-users-access-token')
print page_stats

Concurrency

optional concurrency for insights and page via gevent:

import zuckup

for post in zuckup.page(page_id='nytimes', concurrent=True)
  print post
Release History

Release History

This version
History Node

0.1.0

History Node

0.0.9

History Node

0.0.8

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

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
zuckup-0.1.0.macosx-10.9-intel.exe (70.8 kB) Copy SHA256 Checksum SHA256 any Windows Installer Sep 14, 2014
zuckup-0.1.0.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256 Source Sep 14, 2014

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