From aa3fb2e2982e71d31ef318ce376346e6424e4b68 Mon Sep 17 00:00:00 2001 From: hotyue <52734432+hotyue@users.noreply.github.com> Date: Thu, 7 May 2026 05:44:12 +0000 Subject: [PATCH] =?UTF-8?q?feat(data):=20=E6=96=B0=E5=A2=9E=E5=9C=9F?= =?UTF-8?q?=E8=80=B3=E5=85=B6=20(TR)=20=E6=88=98=E5=8C=BA=E5=8F=8A?= =?UTF-8?q?=E4=BC=8A=E6=96=AF=E5=9D=A6=E5=B8=83=E5=B0=94=E8=8A=82=E7=82=B9?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E8=A1=A5=E5=85=85=E6=B4=BB=E4=BD=93=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E6=B5=81=20RSS=20=E6=BA=90=20(closes=20#46)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/keywords/kw_TR.txt | 0 data/map.json | 17 +++++++++++++++++ data/regions/TR/Default/Istanbul.json | 1 + scripts/fetch_trust_urls.py | 3 ++- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 data/keywords/kw_TR.txt create mode 100644 data/regions/TR/Default/Istanbul.json diff --git a/data/keywords/kw_TR.txt b/data/keywords/kw_TR.txt new file mode 100644 index 0000000..e69de29 diff --git a/data/map.json b/data/map.json index 7f03ca4..fe11158 100644 --- a/data/map.json +++ b/data/map.json @@ -152,6 +152,23 @@ } ] }, + { + "id": "TR", + "name": "Turkey (土耳其)", + "keyword_file": "kw_TR.txt", + "states": [ + { + "id": "Default", + "name": "Default State", + "cities": [ + { + "id": "Istanbul", + "name": "Istanbul (伊斯坦布尔)" + } + ] + } + ] + }, { "id": "DE", "name": "Germany (德国)", diff --git a/data/regions/TR/Default/Istanbul.json b/data/regions/TR/Default/Istanbul.json new file mode 100644 index 0000000..103b478 --- /dev/null +++ b/data/regions/TR/Default/Istanbul.json @@ -0,0 +1 @@ +{ "region_name": "Turkey (Istanbul)", "google_module": { "base_lat": 41.0082, "base_lon": 28.9784, "lang_params": "hl=tr-TR&gl=TR", "valid_url_suffix": "com.tr" }, "trust_module": { "white_urls": [], "static_urls": [ "https://www.turkiye.gov.tr/", "https://www.ziraatbank.com.tr/", "https://www.sahibinden.com/", "https://www.trendyol.com/", "https://www.hepsiburada.com/", "https://www.garantibbva.com.tr/", "https://www.hurriyet.com.tr/", "https://www.milliyet.com.tr/" ] } } diff --git a/scripts/fetch_trust_urls.py b/scripts/fetch_trust_urls.py index 4a0caaa..dbb11ad 100644 --- a/scripts/fetch_trust_urls.py +++ b/scripts/fetch_trust_urls.py @@ -31,7 +31,8 @@ RSS_FEEDS = { "NL": ["https://feeds.nos.nl/nosnieuwsalgemeen"], "VN": ["https://vnexpress.net/rss/tin-moi-nhat.rss"], "MY": ["https://news.google.com/rss?hl=en-MY&gl=MY&ceid=MY:en"], - "NG": ["https://punchng.com/feed/", "https://guardian.ng/feed/"] + "NG": ["https://punchng.com/feed/", "https://guardian.ng/feed/"], + "TR": ["https://www.hurriyet.com.tr/rss/anasayfa"] } def fetch_rss_links(region_code, max_items=15):