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
fix(route): xueqiu snb.js #10281
Merged
Merged
fix(route): xueqiu snb.js #10281
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
Auto: Route Test Complete
Auto route test has finished on given PR
label
Jul 20, 2022
Successfully generated as following: http://localhost:1200/xueqiu/snb/ZH1288184 - Success<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
<channel>
<title><![CDATA[xjbg 的调仓历史]]></title>
<link>https://xueqiu.com/p/ZH1288184</link>
<atom:link href="http://localhost:1200/xueqiu/snb/ZH1288184" rel="self" type="application/rss+xml" />
<description><![CDATA[xjbg 的调仓历史 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
<generator>RSSHub</generator>
<webMaster>i@diygod.me (DIYgod)</webMaster>
<language>zh-cn</language>
<lastBuildDate>Wed, 20 Jul 2022 08:07:54 GMT</lastBuildDate>
<ttl>5</ttl>
<item>
<title><![CDATA[xjbg 的上一笔调仓]]></title>
<description><![CDATA[京东方A from 21.43 to 27,
]]></description>
<pubDate>Wed, 06 May 2020 01:31:07 GMT</pubDate>
<guid isPermaLink="false">xueqiu::snb::ZH1288184::1588728667365</guid>
<link>https://xueqiu.com/p/ZH1288184</link>
</item>
</channel>
</rss>
|
Successfully generated as following: http://localhost:1200/xueqiu/snb/ZH1288184 - Success<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
<channel>
<title><![CDATA[xjbg 的调仓历史]]></title>
<link>https://xueqiu.com/p/ZH1288184</link>
<atom:link href="http://localhost:1200/xueqiu/snb/ZH1288184" rel="self" type="application/rss+xml" />
<description><![CDATA[xjbg 的调仓历史 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
<generator>RSSHub</generator>
<webMaster>i@diygod.me (DIYgod)</webMaster>
<language>zh-cn</language>
<lastBuildDate>Wed, 20 Jul 2022 08:13:11 GMT</lastBuildDate>
<ttl>5</ttl>
<item>
<title><![CDATA[xjbg 的上一笔调仓]]></title>
<description><![CDATA[京东方A from 21.43 to 27,
]]></description>
<pubDate>Wed, 06 May 2020 01:31:07 GMT</pubDate>
<guid isPermaLink="false">xueqiu::snb::ZH1288184::1588728667365</guid>
<link>https://xueqiu.com/p/ZH1288184</link>
</item>
</channel>
</rss>
|
TonyRL
reviewed
Jul 20, 2022
lib/v2/xueqiu/snb.js
Outdated
@@ -8,12 +8,15 @@ module.exports = async (ctx) => { | |||
const response = await got({ | |||
method: 'get', | |||
url, | |||
headers: { | |||
"User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Mobile Safari/537.36 Edg/103.0.1264.37" |
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.
const UA = require('@/utils/rand-user-agent')({ browser: 'chrome', os: 'android', device: 'mobile' });
Suggested change
"User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Mobile Safari/537.36 Edg/103.0.1264.37" | |
"User-Agent": UA |
Successfully generated as following: http://localhost:1200/xueqiu/snb/ZH1288184 - Success<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
<channel>
<title><![CDATA[xjbg 的调仓历史]]></title>
<link>https://xueqiu.com/p/ZH1288184</link>
<atom:link href="http://localhost:1200/xueqiu/snb/ZH1288184" rel="self" type="application/rss+xml" />
<description><![CDATA[xjbg 的调仓历史 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
<generator>RSSHub</generator>
<webMaster>i@diygod.me (DIYgod)</webMaster>
<language>zh-cn</language>
<lastBuildDate>Sat, 30 Jul 2022 20:14:05 GMT</lastBuildDate>
<ttl>5</ttl>
<item>
<title><![CDATA[xjbg 的上一笔调仓]]></title>
<description><![CDATA[京东方A from 21.43 to 27,
]]></description>
<pubDate>Wed, 06 May 2020 01:31:07 GMT</pubDate>
<guid isPermaLink="false">xueqiu::snb::ZH1288184::1588728667365</guid>
<link>https://xueqiu.com/p/ZH1288184</link>
</item>
</channel>
</rss>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
该 PR 相关 Issue / Involved issue
Close #8846
完整路由地址 / Example for the proposed route(s)
新 RSS 检查列表 / New RSS Script Checklist
Puppeteer
说明 / Note
更新snb获取数据的方式和解析数据的正则表达式