Files
RSSHub/lib/v2/qianzhan/radar.js
mokevip8 2c3fa64035 feat(route): 增加前瞻网 (#10524)
* 增加前瞻网

* style: auto format

* chore(deps): bump rand-user-agent from 1.0.77 to 1.0.79 (#137)

Bumps [rand-user-agent](https://github.com/WebScrapingAPI/rand-user-agent) from 1.0.77 to 1.0.79.
- [Release notes](https://github.com/WebScrapingAPI/rand-user-agent/releases)
- [Commits](https://github.com/WebScrapingAPI/rand-user-agent/commits)

---
updated-dependencies:
- dependency-name: rand-user-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: apply suggestions from cr

* fix: deepscan warning

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 02:31:05 +05:00

27 lines
889 B
JavaScript

module.exports = {
'qianzhan.com': {
_name: '前瞻网',
'.': [
{
title: '文章列表',
docs: 'https://docs.rsshub.app/finance.html#qian-zhan-wang',
source: ['/analyst', '/analyst/list/:html'],
target: (params) => {
if (params.html) {
const type = params.html.match(/\d+/)[0];
return '/qianzhan/analyst/column/' + type;
} else {
return '/qianzhan/analyst/column/all';
}
},
},
{
title: '排行榜',
docs: 'https://docs.rsshub.app/finance.html#qian-zhan-wang',
source: ['/analyst', '/'],
target: '/qianzhan/analyst/rank',
},
],
},
};