-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
19 lines (11 loc) · 793 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
TO DEPLOY
---
1) Get API keys for the NewsAPI, Mercury Reader API, Google Natural Language API, and create a Facebook app and get the FB app's API keys.
2) Place those API keys in the "apikeys.txt" file, replacing "000000" for each.
3) Install additional python libraries: requests, requests_cache, arrow. (Use a venv, you animal.)
4) Run the "engine.py" file. This will generate a set of .json files in the /data directory read by index.html.
5) Set "engine.py" to run on a timed schedule to keep your news up to date. Be mindful of API call limits!
5a) Also mind your Apache/web server permissions.
6) Play with the parameters in "engine.py" and customize "index.html" to create your own set of aggregated/filtered news.
6a) (Use your own Google Analytics key, please)