forked from newsWhisperer/winterIsComing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmysecrets.orig.py
31 lines (26 loc) · 1.22 KB
/
mysecrets.orig.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
## copy this file to mysecrets.py and adapt your private settings (cp mysecrets.orig.py mysecrets.py)
## setings for inquiring articles from newsapi.org
# Get API Key: https://newsapi.org/register & https://newsapi.org/account
if(not os.getenv('NEWSAPI_KEY')):
print("NEWSAPI_KEY not yet set.")
os.environ['NEWSAPI_KEY'] = '1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7'
else:
print("NEWSAPI_KEY already set.")
## Get API key: https://rapidapi.com/auth/sign-up
if(not os.getenv('RAPIDAPI_KEY')):
print("RAPIDAPI_KEY not yet set.")
os.environ['RAPIDAPI_KEY'] = '1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y'
else:
print("RAPIDAPI_KEY already set.")
#'Subscribe to Test' at https://rapidapi.com/bonaipowered/api/news-api14
#'Subscribe to Test' at https://rapidapi.com/bonaipowered/api/google-news22
#'Subscribe to Test' at https://rapidapi.com/things4u-api4upro/api/google-news25
#'Subscribe to Test' at https://rapidapi.com/letscrape-6bRBa3QguO5/api/real-time-news-data
#'Subscribe to Test' at
## Get API key: https://rapidapi.com/auth/sign-up
if(not os.getenv('GEONAMES_KEY')):
print("GEONAMES_KEY not yet set.")
os.environ['GEONAMES_KEY'] = 'demo_demo_123'
else:
print("GEONAMES_KEY already set.")