Skip to content

Commit 263cb2d

Browse files
authored
Merge pull request #857 from DIYgod/master
[pull] master from diygod:master
2 parents ebd81b4 + ca9efda commit 263cb2d

File tree

23 files changed

+353
-377
lines changed

23 files changed

+353
-377
lines changed

assets/radar-rules.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@
166166
{ title: '标签最近更新', docs: 'https://docs.rsshub.app/multimedia.html#mqube', source: '/search/tag/:tag', target: '/mqube/tag/:tag' },
167167
],
168168
},
169-
'nikkei.com': { _name: '日本経済新聞', www: [{ title: 'ホームページ', docs: 'https://docs.rsshub.app/traditional-media.html#ri-ben-jing-ji-xin-wen', source: '/', target: '/nikkei/index' }] },
170169
'last.fm': {
171170
_name: 'Last.fm',
172171
www: [

docs/en/traditional-media.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,17 +350,11 @@ Only `s00017` is in English.
350350
| hi | id | ko | fa | pt | ru | es |
351351

352352
| Kiswahili | ภาษาไทย | Türkçe | Українська | اردو | Tiếng Việt |
353-
| --------- | | ------- | ------ | ---------- | ---- | ---------- |
353+
| --------- | ------- | ------ | ---------- | ---- | ---------- |
354354
| sw | th | tr | uk | ur | vi |
355355

356356
</RouteEn>
357357

358-
## Nikkei Asia
359-
360-
### Latest News
361-
362-
<RouteEn author="rainrdx" example="/nikkei-asia" path="/nikkei-asia"/>
363-
364358
## Radio Free Asia (RFA)
365359

366360
### News
@@ -660,6 +654,26 @@ Provides all of the articles by the specified New York Times author.
660654
| series-books|
661655
| young-adult-hardcover|
662656

657+
## The Nikkei 日本経済新聞
658+
659+
### Home
660+
661+
<RouteEn author="zjysdhr" example="/nikkei/index" path="/nikkei/index" radar="1" rssbud="1" />
662+
663+
### News
664+
665+
<RouteEn author="Arracc" example="/nikkei/news" path="/nikkei/:category/:article_type?" :paramsDesc="['Category, see table below','Only includes free articles, set `free` to enable, disabled by default']">
666+
667+
| 総合 | オピニオン | 経済 | 政治 | 金融 | マーケット | ビジネス | マネーのまなび | テック | 国際 | スポーツ | 社会・調査 | 地域 | 文化 | ライフスタイル |
668+
| ---- | --------- | ------- | -------- | --------- | -------- | ------- | ----------- | ---------- | ------------- | ------- | --------- | ------- | ------- | ------------- |
669+
| news | opinion | economy | politics | financial | business | 不支持 | 不支持 | technology | international | sports | society | local | culture | lifestyle |
670+
671+
</RouteEn>
672+
673+
### Nikkei Asia Latest News
674+
675+
<RouteEn author="rainrdx" example="/nikkei/asia" path="/nikkei/asia" radar="1"/>
676+
663677
## The Wall Street Journal (WSJ)
664678

665679
### News

docs/traditional-media.md

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,6 @@ pageClass: routes
305305

306306
</Route>
307307

308-
## Nikkei Asia
309-
310-
### 最新新闻
311-
312-
<Route author="rainrdx" example="/nikkei-asia" path="/nikkei-asia"/>
313-
314308
## Now 新聞
315309

316310
### 新聞
@@ -1069,7 +1063,7 @@ IT・科学 tech_science
10691063

10701064
### 最新报道
10711065

1072-
<Route author="Rongronggg9" example="/kyodonews" path="/kyodonews/:language?/:keyword?" :paramsDesc="['语言: `china` = 简体中文 (默认), `tchina` = 繁體中文', '关键词']">
1066+
<Route author="Rongronggg9" example="/kyodonews" path="/kyodonews/:language?/:keyword?" :paramsDesc="['语言: `china` = 简体中文 (默认), `tchina` = 繁體中文', '关键词']">
10731067

10741068
`keyword` 为关键词,由于共同网有许多关键词并不在主页列出,此处不一一列举,可从关键词页的 URL 的最后一级路径中提取。如 `日中关系` 的关键词页 URL 为 `https://china.kyodonews.net/news/japan-china_relationship`, 则将 `japan-china_relationship` 填入 `keyword`。特别地,当填入 `rss` 时,将从共同网官方 RSS 中抓取文章;略去时,将从首页抓取最新报道 (注意:首页更新可能比官方 RSS 稍慢)。
10751069

@@ -1938,45 +1932,43 @@ category 对应的关键词有
19381932

19391933
</Route>
19401934

1941-
## 日本经济新闻中文版
1935+
## 日本经济新闻
19421936

1943-
### 新闻
1937+
### 首页
19441938

1945-
<Route author="nczitzk" example="/nikkei-cn" path="/nikkei-cn/:language?/:category?/:type?" :paramsDesc="['语言,可选 `zh` 即 繁体中文,`cn` 即 简体中文', '分类,默认为空,可在对应分类页 URL 中找到', '子分类,默认为空,可在对应分类页 URL 中找到']" radar="1" rssbud="1">
1939+
<Route author="zjysdhr" example="/nikkei/index" path="/nikkei/index" radar="1" rssbud="1" />
19461940

1947-
::: tip 提示
1941+
### 新聞
19481942

1949-
[中国 经济 日经中文网](https://cn.nikkei.com/china/ceconomy.html) 的 URL 为 <https://cn.nikkei.com/china/ceconomy.html> 对应路由为 [`/nikkei-cn/cn/china/ceconomy`](https://rsshub.app/nikkei-cn/cn/china/ceconomy)
1943+
<Route author="Arracc" example="/nikkei/news" path="/nikkei/:category/:article_type?" :paramsDesc="['版块', '文章类型,`free` 仅无料全文,缺省为无料全文、有料非全文']">
19501944

1951-
[中國 經濟 日經中文網](https://zh.cn.nikkei.com/china/ceconomy.html) 的 URL 为 <https://zh.cn.nikkei.com/china/ceconomy.html> 对应路由为 [`/nikkei-cn/zh/china/ceconomy`](https://rsshub.app/nikkei-cn/zh/china/ceconomy)
1945+
综合页文章标题添加板块标签
19521946

1953-
特别地,当 `category` 填入 `rss` 后(即路由为 [`/nikkei-cn/cn/rss`](https://rsshub.app/nikkei-cn/cn/rss)),此时返回的是 [官方 RSS 的内容](https://cn.nikkei.com/rss.html)
1954-
1955-
:::
1947+
| 総合 | オピニオン | 経済 | 政治 | 金融 | マーケット | ビジネス | マネーのまなび | テック | 国際 | スポーツ | 社会・調査 | 地域 | 文化 | ライフスタイル |
1948+
| ---- | ------- | ------- | -------- | --------- | -------- | ---- | ------- | ---------- | ------------- | ------ | ------- | ----- | ------- | --------- |
1949+
| news | opinion | economy | politics | financial | business | 不支持 | 不支持 | technology | international | sports | society | local | culture | lifestyle |
19561950

19571951
</Route>
19581952

1959-
## 日本経済新聞
1953+
### 中文版新闻
19601954

1961-
### ホームページ
1955+
<Route author="nczitzk" example="/nikkei/cn" path="/nikkei/cn/:language?/:path?" :paramsDesc="['语言,可选 `zh` 即 繁体中文,`cn` 即 简体中文', '类目路径,默认为空,可在对应类目页 URL 中找到']" radar="1" rssbud="1">
19621956

1963-
<Route author="zjysdhr" example="/nikkei/index" path="/nikkei/index" radar="1" rssbud="1">
1957+
::: tip 提示
19641958

1965-
日文版首页
1959+
[中国 经济 日经中文网](https://cn.nikkei.com/china/ceconomy.html) 的 URL 为 <https://cn.nikkei.com/china/ceconomy.html> 对应路由为 [`/nikkei/cn/cn/china/ceconomy`](https://rsshub.app/nikkei/cn/cn/china/ceconomy)
19661960

1967-
</Route>
1961+
[中國 經濟 日經中文網](https://zh.cn.nikkei.com/china/ceconomy.html) 的 URL 为 <https://zh.cn.nikkei.com/china/ceconomy.html> 对应路由为 [`/nikkei/cn/zh/china/ceconomy`](https://rsshub.app/nikkei/cn/zh/china/ceconomy)
19681962

1969-
### 新聞
1963+
特别地,当 `path` 填入 `rss` 后(如路由为 [`/nikkei/cn/cn/rss`](https://rsshub.app/nikkei/cn/cn/rss)),此时返回的是 [官方 RSS 的内容](https://cn.nikkei.com/rss.html)
19701964

1971-
<Route author="Arracc" example="/nikkei/news" path="/nikkei/:category/:article_type?" :paramsDesc="['版块','文章类型,free 仅无料全文,缺省为无料全文、有料非全文']">
1965+
:::
19721966

1973-
综合页文章标题添加板块标签
1967+
</Route>
19741968

1975-
| 総合 | マネーのまなび | 経済・金融 | 政治 | ビジネス | マネーのまなび | テクノロジー | 国際 | スポーツ | 社会・くらし | オピニオン | 文化 | FT | 地域 | 日経ビジネス | ライフ |
1976-
| ---- | ------- | ------- | -------- | -------- | ------- | ---------- | ------------- | ------ | ------- | ------- | ------- | --- | ----- | ------ | --- |
1977-
| news | 未支持 | economy | politics | business | 未支持 | technology | international | sports | society | opinion | culture | 未支持 | local | 未支持 | 未支持 |
1969+
### Nikkei Asia 最新新闻
19781970

1979-
</Route>
1971+
<Route author="rainrdx" example="/nikkei/asia" path="/nikkei/asia" radar="1"/>
19801972

19811973
## 厦门网
19821974

lib/radar-rules.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -411,17 +411,6 @@ module.exports = {
411411
},
412412
],
413413
},
414-
'nikkei.com': {
415-
_name: '日本経済新聞',
416-
www: [
417-
{
418-
title: 'ホームページ',
419-
docs: 'https://docs.rsshub.app/traditional-media.html#ri-ben-jing-ji-xin-wen',
420-
source: '/',
421-
target: '/nikkei/index',
422-
},
423-
],
424-
},
425414
'last.fm': {
426415
_name: 'Last.fm',
427416
www: [

lib/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,8 +2402,8 @@ router.get('/coronavirus/yahoo-japan/:tdfk?', lazyloadRouteHandler('./routes/cor
24022402
router.get('/njfu/jwc/:category?', lazyloadRouteHandler('./routes/universities/njfu/jwc'));
24032403

24042404
// 日本経済新聞
2405-
router.get('/nikkei/index', lazyloadRouteHandler('./routes/nikkei/index'));
2406-
router.get('/nikkei/:category/:article_type?', lazyloadRouteHandler('./routes/nikkei/news'));
2405+
// router.get('/nikkei/index', lazyloadRouteHandler('./routes/nikkei/index'));
2406+
// router.get('/nikkei/:category/:article_type?', lazyloadRouteHandler('./routes/nikkei/news'));
24072407

24082408
// MQube
24092409
router.get('/mqube/user/:user', lazyloadRouteHandler('./routes/mqube/user'));

lib/routes/nikkei/index.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

lib/routes/nikkei/news.js

Lines changed: 0 additions & 155 deletions
This file was deleted.

lib/v2/infoq/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ const ProcessFeed = async (list, cache) => {
2121
const data = resp.data.data;
2222
const author = data.author ? data.author.map((p) => p.nickname).join(',') : data.no_author;
2323
const category = e.topic.map((t) => t.name).concat(e.label.map((l) => l.name));
24+
const content = data.content_url ? (await got(data.content_url)).body : data.content;
2425

2526
return {
2627
title: data.article_title,
27-
description: parseContent(data.content),
28+
description: parseContent(content),
2829
pubDate: parseDate(e.publish_time, 'x'),
2930
category,
3031
author,

lib/v2/nikkei-asia/maintainer.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/v2/nikkei-asia/radar.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)