Open Knowledge and Data should reach us proactivley. The Notifier enables users to sign up for relevant feeds (API based) and get updates when relevant data/info is published.
- clone me.
- 'pip install requirements.txt'
python export PYTHONPATH= `<project_path>`
- set SENDGRID_KEY, sender address and titles on local_config.py
- use
./mail_sender/mail_sender.py
to check sending - add dictionary of social sharing netweork and links on _config.py:
sharing_services = {
'facebook': "https://www.facebook.com/sharer/sharer.php?u={2}",
'email':"mailto:?&subject={0}: {1}&body={2}",
'linkedin':"https://www.linkedin.com/shareArticle?mini=true&url={2}&title={0}:{1}&summary=&source=",
'twitter':"https://twitter.com/intent/tweet?url={2}&text={0}:{1}.via @hasadna",
'google': "https://plus.google.com/share?url={2}"
}
python db_migrate db init
and/or python db_migrate db migrate
python app.py
set on views route (/addfeed/porjectname):
<notifier_url>/add/<project_name>?link=<feed_url>&otherparam=<value>