Skip to content
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

chore: fix random ua generation #13356

Merged
merged 2 commits into from
Sep 21, 2023
Merged

chore: fix random ua generation #13356

merged 2 commits into from
Sep 21, 2023

Conversation

TonyRL
Copy link
Collaborator

@TonyRL TonyRL commented Sep 21, 2023

Involved Issue / 该 PR 相关 Issue

Close #13353

Example for the Proposed Route(s) / 路由地址示例

/test/1

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Documentation / 文档说明
    • EN / 英文文档
    • CN / 中文文档
  • Full text / 全文获取
    • Use cache / 使用缓存
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

@github-actions github-actions bot added dependencies This PR involves changes to dependencies core enhancement labels Sep 21, 2023
@TonyRL TonyRL marked this pull request as draft September 21, 2023 17:58
@github-actions github-actions bot added Auto: Route Test Complete Auto route test has finished on given PR and removed dependencies This PR involves changes to dependencies labels Sep 21, 2023
@github-actions
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/test/1 - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
    <channel>
        <title><![CDATA[Test 1]]></title>
        <link>https://github.com/DIYgod/RSSHub</link>
        <atom:link href="http://localhost:1200/test/1" rel="self" type="application/rss+xml" />
        <description><![CDATA[A test route for RSSHub - 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>Thu, 21 Sep 2023 19:01:37 GMT</lastBuildDate>
        <ttl>5</ttl>
        <item>
            <title><![CDATA[Title1]]></title>
            <description><![CDATA[Description1]]></description>
            <pubDate>Mon, 31 Dec 2018 15:59:50 GMT</pubDate>
            <guid isPermaLink="false">https://github.com/DIYgod/RSSHub/issues/1</guid>
            <link>https://github.com/DIYgod/RSSHub/issues/1</link>
            <author><![CDATA[DIYgod1]]></author>
        </item>
        <item>
            <title><![CDATA[Title2]]></title>
            <description><![CDATA[Description2]]></description>
            <pubDate>Mon, 31 Dec 2018 15:59:40 GMT</pubDate>
            <guid isPermaLink="false">https://github.com/DIYgod/RSSHub/issues/2</guid>
            <link>https://github.com/DIYgod/RSSHub/issues/2</link>
            <author><![CDATA[DIYgod2]]></author>
        </item>
        <item>
            <title><![CDATA[Title3]]></title>
            <description><![CDATA[Description3]]></description>
            <pubDate>Mon, 31 Dec 2018 15:59:30 GMT</pubDate>
            <guid isPermaLink="false">https://github.com/DIYgod/RSSHub/issues/3</guid>
            <link>https://github.com/DIYgod/RSSHub/issues/3</link>
            <author><![CDATA[DIYgod3]]></author>
        </item>
        <item>
            <title><![CDATA[Title4]]></title>
            <description><![CDATA[Description4]]></description>
            <pubDate>Mon, 31 Dec 2018 15:59:20 GMT</pubDate>
            <guid isPermaLink="false">https://github.com/DIYgod/RSSHub/issues/4</guid>
            <link>https://github.com/DIYgod/RSSHub/issues/4</link>
            <author><![CDATA[DIYgod4]]></author>
        </item>
        <item>
            <title><![CDATA[Title5]]></title>
            <description><![CDATA[Description5]]></description>
            <pubDate>Mon, 31 Dec 2018 15:59:10 GMT</pubDate>
            <guid isPermaLink="false">https://github.com/DIYgod/RSSHub/issues/5</guid>
            <link>https://github.com/DIYgod/RSSHub/issues/5</link>
            <author><![CDATA[DIYgod5]]></author>
        </item>
    </channel>
</rss>

@TonyRL TonyRL marked this pull request as ready for review September 21, 2023 19:03
@TonyRL TonyRL merged commit eb1a40a into DIYgod:master Sep 21, 2023
29 checks passed
@TonyRL TonyRL deleted the chore/fix-ua branch September 21, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto: Route Test Complete Auto route test has finished on given PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rand-user-agent生成不合理的UA导致爬虫被识别
1 participant