-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(route): 新增中国有色金属工业网路由 #16755
feat(route): 新增中国有色金属工业网路由 #16755
Conversation
Successfully generated as following: http://localhost:1200/chinania/xiehuidongtai/xiehuidongtai - Failed ❌
http://localhost:1200/chinania/xiehuidongtai/xiehuitongzhi - Failed ❌
http://localhost:1200/chinania/xiehuidongtai/youseqiye50qiang - Failed ❌
http://localhost:1200/chinania/djgz/xiehuidangjian - Failed ❌
http://localhost:1200/chinania/djgz/hangyedangjian - Failed ❌
http://localhost:1200/chinania/hangyexinwen/shizhengyaowen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/yaowen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/guoneixinwen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/zixun - Failed ❌
http://localhost:1200/chinania/renliziyuan/xiangguantongzhi - Failed ❌
http://localhost:1200/chinania/renliziyuan/renshizhaopin - Failed ❌
http://localhost:1200/chinania/hangyetongji/tongji - Failed ❌
http://localhost:1200/chinania/hangyetongji/chanyeshuju - Failed ❌
http://localhost:1200/chinania/hangyetongji/jqzs - Failed ❌
http://localhost:1200/chinania/zcfg/zhengcefagui - Failed ❌
http://localhost:1200/chinania/hyzl/huiyizhanlan - Failed ❌
http://localhost:1200/chinania/hyzl/huizhanbaodao - Failed ❌
|
Successfully generated as following: http://localhost:1200/chinania/xiehuidongtai/xiehuidongtai - Failed ❌
http://localhost:1200/chinania/xiehuidongtai/xiehuitongzhi - Failed ❌
http://localhost:1200/chinania/xiehuidongtai/youseqiye50qiang - Failed ❌
http://localhost:1200/chinania/djgz/xiehuidangjian - Failed ❌
http://localhost:1200/chinania/djgz/hangyedangjian - Failed ❌
http://localhost:1200/chinania/hangyexinwen/shizhengyaowen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/yaowen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/guoneixinwen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/zixun - Failed ❌
http://localhost:1200/chinania/renliziyuan/xiangguantongzhi - Failed ❌
http://localhost:1200/chinania/renliziyuan/renshizhaopin - Failed ❌
http://localhost:1200/chinania/hangyetongji/tongji - Failed ❌
http://localhost:1200/chinania/hangyetongji/chanyeshuju - Failed ❌
http://localhost:1200/chinania/hangyetongji/jqzs - Failed ❌
http://localhost:1200/chinania/zcfg/zhengcefagui - Failed ❌
http://localhost:1200/chinania/hyzl/huiyizhanlan - Failed ❌
http://localhost:1200/chinania/hyzl/huizhanbaodao - Failed ❌
|
Successfully generated as following: http://localhost:1200/chinania/xiehuidongtai/xiehuidongtai - Failed ❌
http://localhost:1200/chinania/xiehuidongtai/xiehuitongzhi - Failed ❌
http://localhost:1200/chinania/xiehuidongtai/youseqiye50qiang - Failed ❌
http://localhost:1200/chinania/djgz/xiehuidangjian - Failed ❌
http://localhost:1200/chinania/djgz/hangyedangjian - Failed ❌
http://localhost:1200/chinania/hangyexinwen/shizhengyaowen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/yaowen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/guoneixinwen - Failed ❌
http://localhost:1200/chinania/hangyexinwen/zixun - Failed ❌
http://localhost:1200/chinania/renliziyuan/xiangguantongzhi - Failed ❌
http://localhost:1200/chinania/renliziyuan/renshizhaopin - Failed ❌
http://localhost:1200/chinania/hangyetongji/tongji - Failed ❌
http://localhost:1200/chinania/hangyetongji/chanyeshuju - Failed ❌
http://localhost:1200/chinania/hangyetongji/jqzs - Failed ❌
http://localhost:1200/chinania/zcfg/zhengcefagui - Failed ❌
http://localhost:1200/chinania/hyzl/huiyizhanlan - Failed ❌
http://localhost:1200/chinania/hyzl/huizhanbaodao - Failed ❌
|
应该是网站封杀境外IP |
) | ||
); | ||
return { | ||
title: '中国有色金属工业网-' + typeenum[type] + '-' + subtypeenum[subtype], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both values can be obtained programmatically, which does not require hard-coding.
Major type name can be obtained using $('.nav_title').text()
while minor type can be obtained using $('.notice_title_left span').text()
return { | ||
title: '中国有色金属工业网-' + typeenum[type] + '-' + subtypeenum[subtype], | ||
link: currentUrl, | ||
description, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not fill the description of the feed with the Markdown table
RSSHub/lib/routes/chinania/index.ts
Line 8 in 183642a
const description = `:::tip |
target: '/:type/:subtype', | ||
}, | ||
], | ||
name: '中国有色金属工业网', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Route name shouldn't be the same as namespace name.
maintainers: ['murphysking'], | ||
handler, | ||
url: 'www.chinania.org.cn/', | ||
example: '行业统计-行业分析 `hangyetongji/tongji`', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
example must start with /
with the namespace prepended
Involved Issue / 该 PR 相关 Issue
Close #16748
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
Puppeteer
Note / 说明