Spaces:
Running
Running
Commit ·
e697eec
1
Parent(s): 27b6909
a try
Browse files- config.py +2 -0
- src/analyzer.py +15 -0
- src/rss_feed_scraper.py +2 -0
config.py
CHANGED
|
@@ -68,6 +68,8 @@ class Config:
|
|
| 68 |
"https://www.africanews.com/feed/",
|
| 69 |
"https://nawaat.org/feed/",
|
| 70 |
"https://www.tunisienumerique.com/feed-actualites-tunisie.xml",
|
|
|
|
|
|
|
| 71 |
])
|
| 72 |
|
| 73 |
# Fallback subreddits (used for --source reddit or --source rss)
|
|
|
|
| 68 |
"https://www.africanews.com/feed/",
|
| 69 |
"https://nawaat.org/feed/",
|
| 70 |
"https://www.tunisienumerique.com/feed-actualites-tunisie.xml",
|
| 71 |
+
"https://lapresse.tn/feed/",
|
| 72 |
+
"https://allafrica.com/tools/headlines/rdf/tunisia/headlines.rdf",
|
| 73 |
])
|
| 74 |
|
| 75 |
# Fallback subreddits (used for --source reddit or --source rss)
|
src/analyzer.py
CHANGED
|
@@ -15,6 +15,7 @@ RELIABLE_DOMAINS = {
|
|
| 15 |
"washingtonpost.com": 0.10, "ft.com": 0.14, "bloomberg.com": 0.12,
|
| 16 |
"sciencenews.org": 0.14, "medscape.com": 0.12, "nih.gov": 0.16,
|
| 17 |
"news.harvard.edu": 0.14, "nawaat.org": 0.12, "tunisienumerique.com": 0.10,
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
UNRELIABLE_DOMAINS = {
|
|
@@ -363,6 +364,18 @@ SPONSOR_INFO: dict[str, dict] = {
|
|
| 363 |
"wikipedia": "",
|
| 364 |
"owner_wikis": {},
|
| 365 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
}
|
| 367 |
|
| 368 |
CLICKBAIT_PATTERNS = [
|
|
@@ -757,6 +770,8 @@ class NewsAnalyzer:
|
|
| 757 |
"tunisiaonlinenews.com": "tunisia",
|
| 758 |
"nawaat.org": "tunisia",
|
| 759 |
"tunisienumerique.com": "tunisia",
|
|
|
|
|
|
|
| 760 |
"sciencenews.org": "health",
|
| 761 |
"medscape.com": "health",
|
| 762 |
"nih.gov": "health",
|
|
|
|
| 15 |
"washingtonpost.com": 0.10, "ft.com": 0.14, "bloomberg.com": 0.12,
|
| 16 |
"sciencenews.org": 0.14, "medscape.com": 0.12, "nih.gov": 0.16,
|
| 17 |
"news.harvard.edu": 0.14, "nawaat.org": 0.12, "tunisienumerique.com": 0.10,
|
| 18 |
+
"lapresse.tn": 0.12, "allafrica.com": 0.10,
|
| 19 |
}
|
| 20 |
|
| 21 |
UNRELIABLE_DOMAINS = {
|
|
|
|
| 364 |
"wikipedia": "",
|
| 365 |
"owner_wikis": {},
|
| 366 |
},
|
| 367 |
+
"lapresse.tn": {
|
| 368 |
+
"display": "La Presse de Tunisie", "parent": "Société Nouvelle d'Impression de la Presse", "category": "corporate", "bias": "center", "factuality": "high",
|
| 369 |
+
"owners": ["SNIP (Société Nouvelle d'Impression de la Presse)"],
|
| 370 |
+
"wikipedia": "https://en.wikipedia.org/wiki/La_Presse_de_Tunisie",
|
| 371 |
+
"owner_wikis": {},
|
| 372 |
+
},
|
| 373 |
+
"allafrica.com": {
|
| 374 |
+
"display": "AllAfrica", "parent": "AllAfrica Global Media", "category": "independent", "bias": "center", "factuality": "high",
|
| 375 |
+
"owners": ["AllAfrica Global Media (non-profit)"],
|
| 376 |
+
"wikipedia": "https://en.wikipedia.org/wiki/AllAfrica.com",
|
| 377 |
+
"owner_wikis": {},
|
| 378 |
+
},
|
| 379 |
}
|
| 380 |
|
| 381 |
CLICKBAIT_PATTERNS = [
|
|
|
|
| 770 |
"tunisiaonlinenews.com": "tunisia",
|
| 771 |
"nawaat.org": "tunisia",
|
| 772 |
"tunisienumerique.com": "tunisia",
|
| 773 |
+
"lapresse.tn": "tunisia",
|
| 774 |
+
"allafrica.com": "tunisia",
|
| 775 |
"sciencenews.org": "health",
|
| 776 |
"medscape.com": "health",
|
| 777 |
"nih.gov": "health",
|
src/rss_feed_scraper.py
CHANGED
|
@@ -69,6 +69,8 @@ DEFAULT_FEEDS = [
|
|
| 69 |
"https://www.africanews.com/feed/",
|
| 70 |
"https://nawaat.org/feed/",
|
| 71 |
"https://www.tunisienumerique.com/feed-actualites-tunisie.xml",
|
|
|
|
|
|
|
| 72 |
]
|
| 73 |
|
| 74 |
|
|
|
|
| 69 |
"https://www.africanews.com/feed/",
|
| 70 |
"https://nawaat.org/feed/",
|
| 71 |
"https://www.tunisienumerique.com/feed-actualites-tunisie.xml",
|
| 72 |
+
"https://lapresse.tn/feed/",
|
| 73 |
+
"https://allafrica.com/tools/headlines/rdf/tunisia/headlines.rdf",
|
| 74 |
]
|
| 75 |
|
| 76 |
|