Skip to content

Commit

Permalink
chore: auto build DIYgod/RSSHub@88040a7
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 8, 2024
1 parent 62d4498 commit 29094f3
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 58 deletions.
72 changes: 43 additions & 29 deletions src/routes/new-media.md
Original file line number Diff line number Diff line change
Expand Up @@ -1538,55 +1538,69 @@ Member ID

## Yahoo <Site url="hk.news.yahoo.com"/>

### News <Site url="yahoo.com/" size="sm" />
### News <Site url="news.yahoo.com/" size="sm" />

<Route namespace="yahoo" :data='{"path":"/news/:region/:category?","categories":["new-media"],"example":"/yahoo/news/hk/world","parameters":{"region":"Region, `hk/tw/au/ca/fr/malaysia/nz/sg/uk/en(us)`, the part represented by the asterisk (*) in *.news.yahoo.com","category":"Category, The part represented by the asterisk (*) in .news.yahoo.com/rss/*, region \"hk/tw\" differs, see the description below"},"features":{"requireConfig":false,"requirePuppeteer":false,"antiCrawler":false,"supportBT":false,"supportPodcast":false,"supportScihub":false},"radar":[{"source":["news.yahoo.com/"]}],"name":"News","maintainers":["KeiLongW","williamgateszhao"],"url":"news.yahoo.com/","description":"\n`Region`\n\nSupport all regions represented by the asterisk (*) in *.news.yahoo.com, such as hk/tw/au/ca/fr/malaysia/nz/sg/uk/en(us). For www.yahoo.com, use en or us. Sites with news domains other than *.news.yahoo.com, such as de.nachrichten.yahoo.com or news.yahoo.co.jp, are not supported.\n\n`Category`\n\nThe parsing method for Yahoo Hong Kong and Taiwan is quite unique. All supported categories are as follows\n\nCategory for hk.news.yahoo.com (hongkong)\n\n| 全部 | 港聞 | 兩岸國際 | 財經 | 娛樂 | 體育 | 健康 | 親子 | 副刊 |\n| ------- | --------- | -------- | -------- | ------------- | ------ | ------ | --------- | ---------- |\n| (empty) | hong-kong | world | business | entertainment | sports | health | parenting | supplement |\n\nCategory for tw.news.yahoo.com (taiwan)\n\n| 全部 | 政治 | 財經 | 娛樂 | 運動 | 社會地方 | 國際 | 生活 | 健康 | 科技 | 品味 |\n| ------- | -------- | ------- | ------------- | ------ | -------- | ----- | --------- | ------ | ---------- | ----- |\n| (empty) | politics | finance | entertainment | sports | society | world | lifestyle | health | technology | style |\n\nOther Yahoo news is fetched from the RSS provided by Yahoo. Please refer to the categories displayed on the pages of *.news.yahoo.com (for example, \"world\"), and try to access *.news.yahoo.com/rss/world to see if it is accessible and contains recent news (some categories exist but are not updated). If it is accessible and has recent news, then that category can be used on the corresponding site. For example, the available categories for news.yahoo.com are as follows\n\nCategory for news.yahoo.com (US)\n\n| All | US | Politics | World | Science | Tech |\n| ------- | -- | -------- | ----- | ------- | ---- |\n| (empty) | us | politics | world | science | tech |\n\nTo give another example, since uk.news.yahoo.com/rss/ukoriginal is accessible and has recent news, /yahoo/news/uk/ukoriginal is a valid RSSHub route.\n\n`author`\n\nFor Yahoo Hong Kong and Yahoo Taiwan, please use another \"news source\" route.\n\nFor other Yahoo News, this route&#39;s RSS provides the author field. You can use RSSHub&#39;s built-in \"content filtering\" feature. For example, /yahoo-wg/news/tw/technology?filter_author=Yahoo%20Tech|Engadget can filter out news with authors containing Yahoo Tech or Engadget from Yahoo Taiwan&#39;s technology news, which is the Chinese version of Engadget.\n","zh":{"name":"新闻","description":"\n`区域 Region`\n\n支持所有 *.news.yahoo.com 中*号所代表的区域, 例如`hk/tw/au/ca/fr/malaysia/nz/sg/uk/en(us)`, 其中 www.yahoo.com 用 en 或 us 来表示。不支持新闻域名不为 *.news.yahoo.com 的站点如 de.nachrichten.yahoo.com 或 news.yahoo.co.jp。\n\n`分类 Category`\n\n香港和台湾雅虎的读取方式比较特别, 所有支持的 category 如下\n\nhk.news.yahoo.com (香港) 所支持的分类\n\n| 全部 | 港聞 | 兩岸國際 | 財經 | 娛樂 | 體育 | 健康 | 親子 | 副刊 |\n| ------- | --------- | -------- | -------- | ------------- | ------ | ------ | --------- | ---------- |\n| (留空) | hong-kong | world | business | entertainment | sports | health | parenting | supplement |\n\ntw.news.yahoo.com (台湾) 所支持的分类\n\n| 全部 | 政治 | 財經 | 娛樂 | 運動 | 社會地方 | 國際 | 生活 | 健康 | 科技 | 品味 |\n| ------- | -------- | ------- | ------------- | ------ | -------- | ----- | --------- | ------ | ---------- | ----- |\n| (留空) | politics | finance | entertainment | sports | society | world | lifestyle | health | technology | style |\n\n其他雅虎新闻读取自 yahoo 提供的 RSS, 请根据 *.news.yahoo.com 的页面上展示的分类(例如 world ), 尝试 *.news.yahoo.com/rss/world 能否访问并且有近期的新闻(有些分类存在但未更新), 如果可以的话则该分类可以用在相应站点, 例如 news.yahoo.com 可用的分类如下\n\nnews.yahoo.com (美国) 所支持的分类\n\n| All | US | Politics | World | Science | Tech |\n| ------- | -- | -------- | ----- | ------- | ---- |\n| (留空) | us | politics | world | science | tech |\n\n再举例, 由于 uk.news.yahoo.com/rss/ukoriginal 可以访问并且有较新的新闻, 所以 /yahoo/news/uk/ukoriginal 是一个有效的RSSHub路由。\n\n`作者 author`\n\n对于香港和台湾雅虎, 请使用另一个\"新聞來源\"路由。\n\n对于其他雅虎新闻, 本路由的 RSS 中提供了 author 字段, 可使用 RSSHub 的内置\"内容过滤\"功能, 例如 /yahoo-wg/news/tw/technology?filter_author=Yahoo%20Tech|Engadget 可从台湾雅虎的科技新闻中过滤出作者名称中包含 Yahoo Tech 或者 Engadget 的新闻, 即瘾科技中文版。\n"},"location":"news/index.ts"}' :test='{"code":1,"message":"Test timed out in 10000ms.\nIf this is a long-running test, pass a timeout value as the last argument or configure it globally with \"testTimeout\"."}' />

<Route namespace="yahoo" :data='{"path":"/news/:region/:category?","categories":["new-media"],"example":"/yahoo/news/hk/world","parameters":{"region":"Region, see the table below","category":"Category, see the table below"},"features":{"requireConfig":false,"requirePuppeteer":false,"antiCrawler":false,"supportBT":false,"supportPodcast":false,"supportScihub":false},"radar":[{"source":["yahoo.com/"]}],"name":"News","maintainers":["KeiLongW"],"url":"yahoo.com/","description":"`Region`\n\n | Hong Kong | Taiwan | US |\n | --------- | ------ | -- |\n | hk | tw | en |\n\n <details>\n <summary>`Category` (Hong Kong)</summary>\n\n | 全部 | 港聞 | 兩岸國際 | 財經 | 娛樂 | 體育 | 健康 | 親子 | 副刊 |\n | -------- | --------- | -------- | -------- | ------------- | ------ | ------ | --------- | ---------- |\n | (留空) | hong-kong | world | business | entertainment | sports | health | parenting | supplement |\n </details>\n\n <details>\n <summary>`Category` (Taiwan)</summary>\n\n | 全部 | 政治 | 財經 | 娛樂 | 運動 | 社會地方 | 國際 | 生活 | 健康 | 科技 | 品味 |\n | -------- | -------- | ------- | ------------- | ------ | -------- | ----- | --------- | ------ | ---------- | ----- |\n | (留空) | politics | finance | entertainment | sports | society | world | lifestyle | health | technology | style |\n </details>\n\n <details>\n <summary>`Category` (US)</summary>\n\n | All | World | Business | Entertainment | Sports | Health |\n | ------- | ----- | -------- | ------------- | ------ | ------ |\n | (Empty) | world | business | entertainment | sports | health |\n </details>","location":"news/tw/index.ts"}' :test='{"code":1,"message":"Test timed out in 10000ms.\nIf this is a long-running test, pass a timeout value as the last argument or configure it globally with \"testTimeout\"."}' />

`Region`

| Hong Kong | Taiwan | US |
| --------- | ------ | -- |
| hk | tw | en |
Support all regions represented by the asterisk (*) in *.news.yahoo.com, such as hk/tw/au/ca/fr/malaysia/nz/sg/uk/en(us). For www.yahoo.com, use en or us. Sites with news domains other than *.news.yahoo.com, such as de.nachrichten.yahoo.com or news.yahoo.co.jp, are not supported.

<details>
<summary>`Category` (Hong Kong)</summary>
`Category`

| 全部 | 港聞 | 兩岸國際 | 財經 | 娛樂 | 體育 | 健康 | 親子 | 副刊 |
| -------- | --------- | -------- | -------- | ------------- | ------ | ------ | --------- | ---------- |
| (留空) | hong-kong | world | business | entertainment | sports | health | parenting | supplement |
</details>
The parsing method for Yahoo Hong Kong and Taiwan is quite unique. All supported categories are as follows

<details>
<summary>`Category` (Taiwan)</summary>
Category for hk.news.yahoo.com (hongkong)

| 全部 | 政治 | 財經 | 娛樂 | 運動 | 社會地方 | 國際 | 生活 | 健康 | 科技 | 品味 |
| -------- | -------- | ------- | ------------- | ------ | -------- | ----- | --------- | ------ | ---------- | ----- |
| (留空) | politics | finance | entertainment | sports | society | world | lifestyle | health | technology | style |
</details>
| 全部 | 港聞 | 兩岸國際 | 財經 | 娛樂 | 體育 | 健康 | 親子 | 副刊 |
| ------- | --------- | -------- | -------- | ------------- | ------ | ------ | --------- | ---------- |
| (empty) | hong-kong | world | business | entertainment | sports | health | parenting | supplement |

<details>
<summary>`Category` (US)</summary>
Category for tw.news.yahoo.com (taiwan)

| All | World | Business | Entertainment | Sports | Health |
| ------- | ----- | -------- | ------------- | ------ | ------ |
| (Empty) | world | business | entertainment | sports | health |
</details>
| 全部 | 政治 | 財經 | 娛樂 | 運動 | 社會地方 | 國際 | 生活 | 健康 | 科技 | 品味 |
| ------- | -------- | ------- | ------------- | ------ | -------- | ----- | --------- | ------ | ---------- | ----- |
| (empty) | politics | finance | entertainment | sports | society | world | lifestyle | health | technology | style |

Other Yahoo news is fetched from the RSS provided by Yahoo. Please refer to the categories displayed on the pages of *.news.yahoo.com (for example, "world"), and try to access *.news.yahoo.com/rss/world to see if it is accessible and contains recent news (some categories exist but are not updated). If it is accessible and has recent news, then that category can be used on the corresponding site. For example, the available categories for news.yahoo.com are as follows

Category for news.yahoo.com (US)

| All | US | Politics | World | Science | Tech |
| ------- | -- | -------- | ----- | ------- | ---- |
| (empty) | us | politics | world | science | tech |

To give another example, since uk.news.yahoo.com/rss/ukoriginal is accessible and has recent news, /yahoo/news/uk/ukoriginal is a valid RSSHub route.

### Unknown <Site url="hk.news.yahoo.com" size="sm" />
`author`

For Yahoo Hong Kong and Yahoo Taiwan, please use another "news source" route.

For other Yahoo News, this route's RSS provides the author field. You can use RSSHub's built-in "content filtering" feature. For example, /yahoo-wg/news/tw/technology?filter_author=Yahoo%20Tech|Engadget can filter out news with authors containing Yahoo Tech or Engadget from Yahoo Taiwan's technology news, which is the Chinese version of Engadget.

<Route namespace="yahoo" :data='{"path":"/news/en/:category?","name":"Unknown","maintainers":[],"location":"news/us/index.ts"}' :test='undefined' />

### 新聞來源列表 <Site url="hk.news.yahoo.com" size="sm" />

<Route namespace="yahoo" :data='{"path":"/news/providers/:region","categories":["new-media"],"example":"/yahoo/news/providers/tw","parameters":{"region":"地區,見上表"},"features":{"requireConfig":false,"requirePuppeteer":false,"antiCrawler":false,"supportBT":false,"supportPodcast":false,"supportScihub":false},"name":"新聞來源列表","maintainers":["TonyRL"],"location":"news/tw/provider-helper.ts"}' :test='{"code":1,"message":"expected 503 to be 200 // Object.is equality"}' />
<Route namespace="yahoo" :data='{"path":"/news/providers/:region/list","categories":["new-media"],"example":"/yahoo/news/providers/tw/list","parameters":{"region":"地区, 同路由\"新闻来源\"中的支持地区, 即 hk 或 tw"},"features":{"requireConfig":false,"requirePuppeteer":false,"antiCrawler":false,"supportBT":false,"supportPodcast":false,"supportScihub":false},"radar":[{"source":["hk.news.yahoo.com/","tw.news.yahoo.com/"]}],"name":"新聞來源列表","maintainers":["TonyRL","williamgateszhao"],"location":"news/provider-helper.ts"}' :test='undefined' />

### 新聞來源 <Site url="hk.news.yahoo.com" size="sm" />

<Route namespace="yahoo" :data='{"path":"/news/provider/:region/:providerId","categories":["new-media"],"example":"/yahoo/news/provider/tw/udn.com","parameters":{"region":"地區,見下表","providerId":"新聞來源 ID,可透過下方新聞來源列表獲得"},"features":{"requireConfig":false,"requirePuppeteer":false,"antiCrawler":false,"supportBT":false,"supportPodcast":false,"supportScihub":false},"name":"新聞來源","maintainers":["TonyRL"],"description":"| 香港 | 台灣 |\n | ---- | ---- |\n | hk | tw |","location":"news/tw/provider.ts"}' :test='{"code":1,"message":"Test timed out in 10000ms.\nIf this is a long-running test, pass a timeout value as the last argument or configure it globally with \"testTimeout\"."}' />
<Route namespace="yahoo" :data='{"path":"/news/provider/:region/:providerId","categories":["new-media"],"example":"/yahoo/news/provider/tw/yahoo_tech_tw_942","parameters":{"region":"地區, hk 或 tw, 分别表示香港雅虎和台湾雅虎","providerId":"新聞來源 ID, 可透過路由\"新聞來源列表\"獲得"},"features":{"requireConfig":false,"requirePuppeteer":false,"antiCrawler":false,"supportBT":false,"supportPodcast":false,"supportScihub":false},"radar":[{"source":["hk.news.yahoo.com/","tw.news.yahoo.com/"]}],"name":"新聞來源","maintainers":["TonyRL","williamgateszhao"],"description":"\n`Region`\n\n| 香港 | 台灣 |\n| ---- | ---- |\n| hk | tw |\n\n`ProviderId`\n\n除了可以通过路由\"新聞來源列表\"获得外, 也可通过 hk.news.yahoo.com/archive 和 tw.news.yahoo.com/archive 选择\"新闻来源\"后通过页面 Url 来获得。\n\n例如 hk.news.yahoo.com/yahoo_movies_hk_660--所有分類/archive, `yahoo_movies_hk_660` 就是 ProviderId 。\n","location":"news/provider.ts"}' :test='{"code":1,"message":"Test timed out in 10000ms.\nIf this is a long-running test, pass a timeout value as the last argument or configure it globally with \"testTimeout\"."}' />


`Region`

| 香港 | 台灣 |
| ---- | ---- |
| hk | tw |
| ---- | ---- |
| hk | tw |

`ProviderId`

除了可以通过路由"新聞來源列表"获得外, 也可通过 hk.news.yahoo.com/archive 和 tw.news.yahoo.com/archive 选择"新闻来源"后通过页面 Url 来获得。

例如 hk.news.yahoo.com/yahoo_movies_hk_660--所有分類/archive, `yahoo_movies_hk_660` 就是 ProviderId 。


## zyw <Site url="hot.zyw.asia"/>

Expand Down
Loading

0 comments on commit 29094f3

Please sign in to comment.