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
Pagination
paginate through results using paginate with insights and page:
for post in zuckup.page(page_id='nytimes', paginate=True) print post
Concurrency
optional concurrency for insights and page via gevent:
import zuckup for post in zuckup.page(page_id='nytimes', concurrent=True) print post
Metadata
Release files for zuckup 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zuckup-0.1.0.tar.gz | 5.1 kB | Without provenance | Details for zuckup-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zuckup-0.1.0.macosx-10.9-intel.exe | Details for zuckup-0.1.0.macosx-10.9-intel.exe |
Total release size: 75.9 kB
Release files / zuckup-0.1.0.tar.gz
| Download URL | zuckup-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e98cb4c83227de090fe42d0e5caaac6a4c3f8fede8c12da8c5447e8f7857a67e
|
|
BLAKE2b-256 checksum How to use checksums |
c2b07cc35fd96c0c93e9080bddeaa13088c55e2cfd28433775195121d4caa591
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / zuckup-0.1.0.macosx-10.9-intel.exe
| Download URL | zuckup-0.1.0.macosx-10.9-intel.exe |
|---|---|
| Size | 70.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cddbe56fef38873aac557c50eedfc8c8bf42dd9c8abd27fa9add499d87c7b16c
|
|
BLAKE2b-256 checksum How to use checksums |
5b31ac8eb61ddc949d7c6330673ee3cde9b83ea555ec71d8ea956161fadea139
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zuckup 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.