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):