瀏覽代碼

Adjust similarity threshold and minimum source count, add additional RSS feeds

- Lower `SIMILARITY_THRESHOLD` to 0.68 and raise `MIN_SOURCES` to 3 for stricter story clustering.
- Expand `sources.txt` with new international and regional RSS feeds, including RT, The Jakarta Post, Philstar, and others.
- Add a new "Miscellaneous" section for diverse investigatory sources like The Intercept, OCCRP, and Bellingcat.
master
Jared Bell 2 天之前
父節點
當前提交
16bb7e4dae
共有 2 個文件被更改,包括 14 次插入4 次删除
  1. +2
    -2
      main.py
  2. +12
    -2
      resources/sources.txt

+ 2
- 2
main.py 查看文件

@@ -17,8 +17,8 @@ logger = logging.getLogger(__name__)
SOURCE_FILE = './resources/sources.txt'
STOPWORDS_FILE = './resources/stopwords.txt'
EXCLUDED_PHRASES_FILE = './resources/excluded_phrases.txt'
SIMILARITY_THRESHOLD = 0.75
MIN_SOURCES = 2
SIMILARITY_THRESHOLD = 0.68
MIN_SOURCES = 3

# Used so stories without a parsable date sort behind dated ones.
_MIN_DATE = date.min


+ 12
- 2
resources/sources.txt 查看文件

@@ -25,11 +25,16 @@ https://www.france24.com/en/rss
https://www.euronews.com/rss?format=mrss&level=theme&name=news
https://www.spiegel.de/international/index.rss
https://feeds.elpais.com/mrss-s/pages/ep/site/english.elpais.com/portada
https://www.rt.com/rss/news/
https://www.euronews.com/news/americas
https://tvpworld.com/69471092/news

# Middle East & Asia
https://www.aljazeera.com/xml/rss/all.xml
https://www.japantimes.co.jp/feed/
https://www.scmp.com/rss/91/feed
https://www.scmp.com/rss/322262/feed/
https://www.philstar.com/rss/world
https://www.thejakartapost.com/

# Policy & national
https://feeds.washingtonpost.com/rss/world
@@ -37,4 +42,9 @@ https://thehill.com/feed/
https://www.vox.com/rss/index.xml

# Business
https://www.cnbc.com/id/100003114/device/rss/rss.html
https://www.cnbc.com/id/100003114/device/rss/rss.html

# Miscellaneous
https://theintercept.com/feed/
https://www.occrp.org/en
https://www.bellingcat.com/

Loading…
取消
儲存