-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcovid_report_settings.py
64 lines (53 loc) · 2.4 KB
/
covid_report_settings.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from shared import RssInfo, EXPIRE_HOUR, EXPIRE_DAY
ALL_URLS = {
"https://www.reddit.com/r/Coronavirus/rising/.rss" :
RssInfo("redditlogosmall.webp",
"Reddit Corona virus sub",
"https://www.reddit.com/r/Coronavirus/",
EXPIRE_HOUR),
"https://www.reddit.com/r/COVID19/.rss" :
RssInfo("Coronavirus.jpg",
"Reddit Covid-19 sub",
"https://www.reddit.com/r/COVID19/",
EXPIRE_HOUR),
"https://www.google.com/alerts/feeds/12151242449143161443/16985802477674969984" :
RssInfo("Google-News.png",
"Google Coronavirus news",
"https://news.google.com/search?q=coronavirus",
EXPIRE_HOUR),
"https://tools.cdc.gov/api/v2/resources/media/404952.rss" :
RssInfo("CDC-Logo.png",
"Centers for Disease Control",
"https://www.cdc.gov/coronavirus/2019-nCoV/index.html",
EXPIRE_DAY),
"https://www.youtube.com/feeds/videos.xml?channel_id=UCD2-QVBQi48RRQTD4Jhxu8w" :
RssInfo("PeakProsperity.png",
"Chris Martenson Peak Prosperity",
"https://www.youtube.com/user/ChrisMartensondotcom/videos",
EXPIRE_DAY),
"https://www.youtube.com/feeds/videos.xml?channel_id=UCF9IOB2TExg3QIBupFtBDxg" :
RssInfo("JohnCampbell.png",
"Dr. John Campbell",
"https://www.youtube.com/user/Campbellteaching/videos",
EXPIRE_DAY),
}
USER_AGENT = "Covid-19 Report -- http://covidreport.org/"
site_urls = [
"https://www.reddit.com/r/Coronavirus/rising/.rss",
"https://www.reddit.com/r/COVID19/.rss",
"https://www.google.com/alerts/feeds/12151242449143161443/16985802477674969984",
"https://tools.cdc.gov/api/v2/resources/media/404952.rss",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCD2-QVBQi48RRQTD4Jhxu8w",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCF9IOB2TExg3QIBupFtBDxg",
]
domain = "http://covidreport.org"
URL_IMAGES = domain + "/static/images/"
FAVICON = domain + "/static/images/covidreport192.ico"
LOGO_URL = domain + "/static/images/CovidReport.png"
WEB_DESCRIPTION = "COVID-19 and SARS-COV-2 news"
WEB_TITLE = "COVID-19 Report"
ABOVE_HTML_FILE = '/srv/http/CovidReport2/covidreportabove.html'
WELCOME_HTML = ('<font size="4">(Refreshes hourly -- See also <b><a target="_blank" href = '
'"https://linuxreport.net/">LinuxReport</a></b>) - Fork me on <a target="_blank"'
'href = "https://github.com/KeithCu/LinuxReport">GitHub</a> or <a target="_blank"'
'href = "https://gitlab.com/keithcu/linuxreport">GitLab.</a></font>')