lauregch / sharedcount-daily-reports

Automated social shares daily reports for any website, using SharedCount

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

$ mv options.json.example options.json
# Enter your Sharedcount API key

Usage

Manually

Create CSV for today :

$ python scripts/sharecount.py --apikey=xxxx --sitemap=http://website.com/fr/sitemap.xml,http://website.com/en/sitemap.xml --domains=website.com,www.website.com --name=website-name --output-dir=output/  

Projects presets

$ mv projects.json.example projects.json
# Enter here all the projects options

Runs the script for projects listed in projets.json :

$ python ./do_it.py

This fetches social data and uploads it to tableau, according to the options listed in options.json.

Cron schedule

Schedule automatic fetch each day at 23:30 :

$ crontab -e
MAILTO=xxx@xxx.com
30 23 * * *   cd /path/to/app ; python do_it.py

About

Automated social shares daily reports for any website, using SharedCount


Languages

Language:Python 100.0%