Skip to main content

simple facebook parsing

Project description

travis-img 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='nytimes'):
  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')

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

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

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

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

zuckup-0.0.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

zuckup-0.0.4.macosx-10.9-intel.exe (69.9 kB view details)

Uploaded Source

File details

Details for the file zuckup-0.0.4.tar.gz.

File metadata

  • Download URL: zuckup-0.0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zuckup-0.0.4.tar.gz
Algorithm Hash digest
SHA256 582f9f2719e9ecd6886139fb0c56f2ea8c0b52cb0cf81349a4275bfca4b87bb5
MD5 915bef439d555e9d7b4c38f2e807b9f0
BLAKE2b-256 d9232bf79de32e93b35a28c95b8ac60a0ae8dde6b8c0329437610c8606b7d656

See more details on using hashes here.

File details

Details for the file zuckup-0.0.4.macosx-10.9-intel.exe.

File metadata

File hashes

Hashes for zuckup-0.0.4.macosx-10.9-intel.exe
Algorithm Hash digest
SHA256 9f040663cc1275016c71b1a6706fb416f95660945f9cc5191784a159ddfd9706
MD5 40c9e913289f65ed1e41b2e620865310
BLAKE2b-256 0142838a13dd65ffc7d241ab4b62901a922149d4920661cd43554a257ddf2055

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