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

feat(route): migrate japanpost to v2 #13181

Merged
merged 3 commits into from
Sep 1, 2023
Merged

Conversation

tuzi3040
Copy link
Contributor

@tuzi3040 tuzi3040 commented Sep 1, 2023

Involved Issue / 该 PR 相关 Issue

Close #

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

/japanpost/track/225296644860/jp

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 / 说明

fix(route): japanpost: fix cheerio custom methods
fix(route): japanpost: fix manual timezone parse

fix(route): japanpost: fix cheerio custom methods
fix(route): japanpost: fix manual timezone parse
@github-actions github-actions bot added Route: v1 v1 route related Route: v2 v2 route related labels Sep 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2023

Successfully generated as following:

http://localhost:1200/japanpost/track/225296644860/jp - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
    <channel>
        <title><![CDATA[日本郵便 225296644860 ゆうパケット]]></title>
        <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        <atom:link href="http://localhost:1200/japanpost/track/225296644860/jp" rel="self" type="application/rss+xml" />
        <description><![CDATA[日本郵便 225296644860 ゆうパケット - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        <language>ja</language>
        <lastBuildDate>Fri, 01 Sep 2023 11:25:18 GMT</lastBuildDate>
        <ttl>5</ttl>
        <item>
            <title><![CDATA[お届け先にお届け済み 大阪西郵便局 大阪府]]></title>
            <description><![CDATA[お届け先にお届け済み<br>
550-8799 大阪西郵便局 大阪府
]]></description>
            <pubDate>Mon, 03 Jul 2023 02:50:00 GMT</pubDate>
            <guid isPermaLink="false">97DB8BCE221DE138A4DF14FBBAA0A2E9</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
        <item>
            <title><![CDATA[到着 大阪西郵便局 大阪府]]></title>
            <description><![CDATA[到着<br>
550-8799 大阪西郵便局 大阪府
]]></description>
            <pubDate>Sun, 02 Jul 2023 14:45:00 GMT</pubDate>
            <guid isPermaLink="false">2D8A41742C040CAE3C37280C4A10A340</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
        <item>
            <title><![CDATA[引受 新大阪(大阪A) 大阪府]]></title>
            <description><![CDATA[引受<br>
590-0901 新大阪(大阪A) 大阪府
<br>
<br>引受 新大阪(大阪A) 03-5606-5406
<br>配達 <a href="http://www.post.japanpost.jp/cgi-shiten_search/syousai.php?id=200121410620" target="_blank">大阪西郵便局</a> 0570-003-725
]]></description>
            <pubDate>Sat, 01 Jul 2023 15:00:00 GMT</pubDate>
            <guid isPermaLink="false">7951886A4364DF39C26A7D9A98F33C32</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
    </channel>
</rss>

@github-actions github-actions bot added the Auto: Route Test Complete Auto route test has finished on given PR label Sep 1, 2023
assets/radar-rules.js Show resolved Hide resolved
lib/v2/japanpost/maintainer.js Outdated Show resolved Hide resolved
lib/v2/japanpost/radar.js Outdated Show resolved Hide resolved
lib/v2/japanpost/radar.js Show resolved Hide resolved
lib/v2/japanpost/templates/track_item_desc.art Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2023

Successfully generated as following:

http://localhost:1200/japanpost/track/225296644860/jp - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
    <channel>
        <title><![CDATA[日本郵便 225296644860 ゆうパケット]]></title>
        <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        <atom:link href="http://localhost:1200/japanpost/track/225296644860/jp" rel="self" type="application/rss+xml" />
        <description><![CDATA[日本郵便 225296644860 ゆうパケット - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        <language>ja</language>
        <lastBuildDate>Fri, 01 Sep 2023 18:54:42 GMT</lastBuildDate>
        <ttl>5</ttl>
        <item>
            <title><![CDATA[お届け先にお届け済み 大阪西郵便局 大阪府]]></title>
            <description><![CDATA[お届け先にお届け済み<br>
550-8799 大阪西郵便局 大阪府
]]></description>
            <pubDate>Mon, 03 Jul 2023 02:50:00 GMT</pubDate>
            <guid isPermaLink="false">97DB8BCE221DE138A4DF14FBBAA0A2E9</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
        <item>
            <title><![CDATA[到着 大阪西郵便局 大阪府]]></title>
            <description><![CDATA[到着<br>
550-8799 大阪西郵便局 大阪府
]]></description>
            <pubDate>Sun, 02 Jul 2023 14:45:00 GMT</pubDate>
            <guid isPermaLink="false">2D8A41742C040CAE3C37280C4A10A340</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
        <item>
            <title><![CDATA[引受 新大阪(大阪A) 大阪府]]></title>
            <description><![CDATA[引受<br>
590-0901 新大阪(大阪A) 大阪府
        <br>
            <br>引受 新大阪(大阪A) 03-5606-5406
            <br>配達 <a href="http://www.post.japanpost.jp/cgi-shiten_search/syousai.php?id=200121410620" target="_blank">大阪西郵便局</a> 0570-003-725
]]></description>
            <pubDate>Sat, 01 Jul 2023 15:00:00 GMT</pubDate>
            <guid isPermaLink="false">D8B868E4222969B8969F19D8953FA74E</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
    </channel>
</rss>

@tuzi3040 tuzi3040 requested a review from TonyRL September 1, 2023 19:03
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2023

Successfully generated as following:

http://localhost:1200/japanpost/track/225296644860/jp - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
    <channel>
        <title><![CDATA[日本郵便 225296644860 ゆうパケット]]></title>
        <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        <atom:link href="http://localhost:1200/japanpost/track/225296644860/jp" rel="self" type="application/rss+xml" />
        <description><![CDATA[日本郵便 225296644860 ゆうパケット - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        <language>ja</language>
        <lastBuildDate>Fri, 01 Sep 2023 19:05:41 GMT</lastBuildDate>
        <ttl>5</ttl>
        <item>
            <title><![CDATA[お届け先にお届け済み 大阪西郵便局 大阪府]]></title>
            <description><![CDATA[お届け先にお届け済み<br>
550-8799 大阪西郵便局 大阪府
]]></description>
            <pubDate>Mon, 03 Jul 2023 02:50:00 GMT</pubDate>
            <guid isPermaLink="false">97DB8BCE221DE138A4DF14FBBAA0A2E9</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
        <item>
            <title><![CDATA[到着 大阪西郵便局 大阪府]]></title>
            <description><![CDATA[到着<br>
550-8799 大阪西郵便局 大阪府
]]></description>
            <pubDate>Sun, 02 Jul 2023 14:45:00 GMT</pubDate>
            <guid isPermaLink="false">2D8A41742C040CAE3C37280C4A10A340</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
        <item>
            <title><![CDATA[引受 新大阪(大阪A) 大阪府]]></title>
            <description><![CDATA[引受<br>
590-0901 新大阪(大阪A) 大阪府
        <br>
            <br>引受 新大阪(大阪A) 03-5606-5406
            <br>配達 <a href="http://www.post.japanpost.jp/cgi-shiten_search/syousai.php?id=200121410620" target="_blank">大阪西郵便局</a> 0570-003-725
]]></description>
            <pubDate>Sat, 01 Jul 2023 15:00:00 GMT</pubDate>
            <guid isPermaLink="false">D8B868E4222969B8969F19D8953FA74E</guid>
            <link>https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=225296644860&#38;locale=ja</link>
        </item>
    </channel>
</rss>

@TonyRL TonyRL merged commit c4c947d into DIYgod:master Sep 1, 2023
26 of 27 checks passed
@tuzi3040 tuzi3040 deleted the japanpost-dev branch September 1, 2023 19:09
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 Route: v1 v1 route related Route: v2 v2 route related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants