mirror of
https://github.com/hotyue/IP-Sentinel.git
synced 2026-07-10 23:21:23 +08:00
feat(data): 新增土耳其 (TR) 战区及伊斯坦布尔节点,并补充活体新闻流 RSS 源 (closes #46)
This commit is contained in:
0
data/keywords/kw_TR.txt
Normal file
0
data/keywords/kw_TR.txt
Normal file
@@ -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",
|
"id": "DE",
|
||||||
"name": "Germany (德国)",
|
"name": "Germany (德国)",
|
||||||
|
|||||||
1
data/regions/TR/Default/Istanbul.json
Normal file
1
data/regions/TR/Default/Istanbul.json
Normal file
@@ -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/" ] } }
|
||||||
@@ -31,7 +31,8 @@ RSS_FEEDS = {
|
|||||||
"NL": ["https://feeds.nos.nl/nosnieuwsalgemeen"],
|
"NL": ["https://feeds.nos.nl/nosnieuwsalgemeen"],
|
||||||
"VN": ["https://vnexpress.net/rss/tin-moi-nhat.rss"],
|
"VN": ["https://vnexpress.net/rss/tin-moi-nhat.rss"],
|
||||||
"MY": ["https://news.google.com/rss?hl=en-MY&gl=MY&ceid=MY:en"],
|
"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):
|
def fetch_rss_links(region_code, max_items=15):
|
||||||
|
|||||||
Reference in New Issue
Block a user