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='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
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
Built Distribution
Hashes for zuckup-0.0.3.macosx-10.9-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb355c42adebbdbc7001549e458ae5730af588014a4e3db3afa58bf8b41fbff5 |
|
MD5 | 7738b2ca6979415a0f9d7ac81312c12f |
|
BLAKE2b-256 | a94f9adf1d3f7fc1aa147b1218e8200eb7d03dbdd1482a92af63528641dd3764 |