Django Facebook Pages Statistic
===============================
[](http://badge.fury.io/py/django-facebook-pages-statistic) [](https://travis-ci.org/ramusus/django-facebook-pages-statistic) [](https://coveralls.io/r/ramusus/django-facebook-pages-statistic)
Application for storing Facebook Pages statistic (likes and talking_about counters) for different timesnaps
Installation
------------
pip install django-facebook-pages-statistic
Add into `settings.py` lines:
INSTALLED_APPS = (
...
'taggit',
'oauth_tokens',
'facebook_api',
'facebook_pages',
'facebook_pages_statistic',
)
# oauth-tokens settings
OAUTH_TOKENS_HISTORY = True # to keep in DB expired access tokens
OAUTH_TOKENS_FACEBOOK_CLIENT_ID = '' # application ID
OAUTH_TOKENS_FACEBOOK_CLIENT_SECRET = '' # application secret key
OAUTH_TOKENS_FACEBOOK_SCOPE = ['offline_access'] # application scopes
OAUTH_TOKENS_FACEBOOK_USERNAME = '' # user login
OAUTH_TOKENS_FACEBOOK_PASSWORD = '' # user password
Usage examples
--------------
After fetching Facebook Page from [django-facebook-pages application](https://github.com/ramusus/django-facebook-pages)
automaticaly in background PageStatistic instance will be created which store last likes_count, talking_about_count and current update time
>>> page = Page.remote.fetch('19292868552')
>>> stat = page.statistics.latest()
>>> stat.likes_count
10
>>> stat.talking_about_count
20
>>> stat.updated_at
datetime.datetime(2014, 10, 28, 15, 12, 16, 128099, tzinfo=<UTC>)
Licensing
---------
This library uses the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
Please see the library's individual files for more information.
===============================
[](http://badge.fury.io/py/django-facebook-pages-statistic) [](https://travis-ci.org/ramusus/django-facebook-pages-statistic) [](https://coveralls.io/r/ramusus/django-facebook-pages-statistic)
Application for storing Facebook Pages statistic (likes and talking_about counters) for different timesnaps
Installation
------------
pip install django-facebook-pages-statistic
Add into `settings.py` lines:
INSTALLED_APPS = (
...
'taggit',
'oauth_tokens',
'facebook_api',
'facebook_pages',
'facebook_pages_statistic',
)
# oauth-tokens settings
OAUTH_TOKENS_HISTORY = True # to keep in DB expired access tokens
OAUTH_TOKENS_FACEBOOK_CLIENT_ID = '' # application ID
OAUTH_TOKENS_FACEBOOK_CLIENT_SECRET = '' # application secret key
OAUTH_TOKENS_FACEBOOK_SCOPE = ['offline_access'] # application scopes
OAUTH_TOKENS_FACEBOOK_USERNAME = '' # user login
OAUTH_TOKENS_FACEBOOK_PASSWORD = '' # user password
Usage examples
--------------
After fetching Facebook Page from [django-facebook-pages application](https://github.com/ramusus/django-facebook-pages)
automaticaly in background PageStatistic instance will be created which store last likes_count, talking_about_count and current update time
>>> page = Page.remote.fetch('19292868552')
>>> stat = page.statistics.latest()
>>> stat.likes_count
10
>>> stat.talking_about_count
20
>>> stat.updated_at
datetime.datetime(2014, 10, 28, 15, 12, 16, 128099, tzinfo=<UTC>)
Licensing
---------
This library uses the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
Please see the library's individual files for more information.
Metadata
Release files for django-facebook-pages-statistic 0.6.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 | |
|---|---|---|---|
| django-facebook-pages-statistic-0.6.0.tar.gz | 10.6 kB | Details |
Release files / django-facebook-pages-statistic-0.6.0.tar.gz
| Download URL | django-facebook-pages-statistic-0.6.0.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb3ca3114af504d103a0b54359eac530543d8930565f0490c86fd1601cfa61ff
|
|
BLAKE2b-256 checksum How to use checksums |
01a2871641999f9f7b0ebe368c95582965532e1cc8e94d1ef0a754af3a8c2e92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |