Naarad aggregates all your KGP related news from facebook pages to one place.Go to http://naarad.metakgp.org to see it working.
Naarad gets the content from the specified pages using Facebook's graph API. We use facepy as the python frontend for the api.
- Get a Facebook API token and save it in file name
ACCESS_TOKEN. See this StackOverflow Answer. - Naarad runs exclusively on Python 3, you can conda to easily switch between Python 2 and Python 3 environments.
- Install
facepy. As of now you'll have to usehargup's fork offacepyas the code in the original repository doesn't handle downloading of image files well. Pull Request is in process.- Clone https://github.com/hargup/facepy
- Change into the directory and do
pip install -e .
- Run
deploy.shto push the changes tomaster. The website is generated through thedocs/directory.deploy.shrunsfbscrapper.pywhich creates json files containing feeds, and then runsfrontend.pywhich converts the json feed into into nice html according to a template specified infeed.tmpl.
AGPL