RSSHub icon indicating copy to clipboard operation
RSSHub copied to clipboard

fix(route): 「全国今日生猪价格」 接口地址变更

Open ueiu opened this issue 1 year ago • 2 comments

Involved Issue / 该 PR 相关 Issue

Close #15955

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

/zhuwang/zhujia

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

  • [ ] New Route / 新的路由
  • [ ] 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 / 说明

ueiu avatar Jun 20 '24 17:06 ueiu

Successfully generated as following:

http://localhost:1200/zhuwang/zhujia - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>全国今日生猪价格</title>
    <link>https://www.zhuwang.com.cn/</link>
    <atom:link href="http://localhost:1200/zhuwang/zhujia" rel="self" type="application/rss+xml"></atom:link>
    <description>全国今日生猪价格 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)</description>
    <generator>RSSHub</generator>
    <webMaster>[email protected] (DIYgod)</webMaster>
    <language>en</language>
    <lastBuildDate>Thu, 20 Jun 2024 17:55:34 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>2024-6-21 生猪(外三元) 18.32元/公斤. 较昨日价格, 下跌0.53元</title>
      <description>较昨日价格, 下跌0.53元</description>
      <link>https://xt.yangzhu.vip/manage/datamap/ptype/1/areano/-1.html</link>
      <guid isPermaLink="false">2024-6-21 生猪(外三元)</guid>
    </item>
    <item>
      <title>2024-6-21 生猪(内三元) 18.4元/公斤. 较昨日价格, 下跌0.17元</title>
      <description>较昨日价格, 下跌0.17元</description>
      <link>https://xt.yangzhu.vip/manage/datamap/ptype/2/areano/-1.html</link>
      <guid isPermaLink="false">2024-6-21 生猪(内三元)</guid>
    </item>
    <item>
      <title>2024-6-21 生猪(土杂猪) 18元/公斤. 较昨日价格, 下跌0.14元</title>
      <description>较昨日价格, 下跌0.14元</description>
      <link>https://xt.yangzhu.vip/manage/datamap/ptype/3/areano/-1.html</link>
      <guid isPermaLink="false">2024-6-21 生猪(土杂猪)</guid>
    </item>
  </channel>
</rss>

github-actions[bot] avatar Jun 20 '24 17:06 github-actions[bot]

https://rsshub.app/zhuwang/zhujia

路由恢复了 原因不明

KwToPA avatar Jun 26 '24 20:06 KwToPA

原来的路由出现故障,报价日期正确,数据出错,一直是7月6日的数据

2024-7-16 生猪(外三元) 18.57元/公斤. 较昨日价格, 下跌0.2元

官网应该是 https://xt.yangzhu.vip/

KwToPA avatar Jul 15 '24 21:07 KwToPA

原来的路由出现故障,报价日期正确,数据出错,一直是7月6日的数据

2024-7-16 生猪(外三元) 18.57元/公斤. 较昨日价格, 下跌0.2元

官网应该是 https://xt.yangzhu.vip/

@KwToPA 以前是用 https://zhujia.zhuwang.cc/ 访问的,现在新官网是这个也可以吧:https://www.zhuwang.com.cn/

@TonyRL Can you re review and merge? thanks.

ueiu avatar Jul 16 '24 11:07 ueiu

@TonyRL Can you re review and merge? thanks.

Please resolve https://github.com/DIYgod/RSSHub/pull/15957#discussion_r1647983633

TonyRL avatar Jul 16 '24 12:07 TonyRL

@TonyRL Can you re review and merge? thanks.

Please resolve #15957 (comment)

However, the content displayed on https://zhujia.zhuwang.cc/ is the same as that on https://www.zhuwang.com.cn/, and I did this for compatibility with the previous homepage. Only the URL for obtaining data has changed to https://zhujia.zhuwang.com.cn/.

Refer to this screenshot: image

ueiu avatar Jul 16 '24 13:07 ueiu

@TonyRL Can you re review and merge? thanks.

Please resolve #15957 (comment)

However, the content displayed on https://zhujia.zhuwang.cc/ is the same as that on https://www.zhuwang.com.cn/, and I did this for compatibility with the previous homepage. Only the URL for obtaining data has changed to https://zhujia.zhuwang.com.cn/.

Refer to this screenshot: image

baseUrl only provide the necessary data while https://www.zhuwang.com.cn/ contains a lot of noise.

Screenshot

image

TonyRL avatar Jul 16 '24 13:07 TonyRL

Successfully generated as following:

http://localhost:1200/zhuwang/zhujia - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>全国今日生猪价格</title>
    <link>https://zhujia.zhuwang.com.cn/</link>
    <atom:link href="http://localhost:1200/zhuwang/zhujia" rel="self" type="application/rss+xml"></atom:link>
    <description>全国今日生猪价格 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)</description>
    <generator>RSSHub</generator>
    <webMaster>[email protected] (DIYgod)</webMaster>
    <language>en</language>
    <lastBuildDate>Tue, 16 Jul 2024 14:16:42 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>2024-7-16 生猪(外三元) 19.1元/公斤. 较昨日价格, 每公斤上涨0.19元</title>
      <description>较昨日价格, 每公斤上涨0.19元</description>
      <link>https://xt.yangzhu.vip/manage/datamap/ptype/1/areano/-1.html</link>
      <guid isPermaLink="false">2024-7-16 生猪(外三元)</guid>
    </item>
    <item>
      <title>2024-7-16 生猪(内三元) 18.73元/公斤. 较昨日价格, 每公斤上涨0.18元</title>
      <description>较昨日价格, 每公斤上涨0.18元</description>
      <link>https://xt.yangzhu.vip/manage/datamap/ptype/2/areano/-1.html</link>
      <guid isPermaLink="false">2024-7-16 生猪(内三元)</guid>
    </item>
    <item>
      <title>2024-7-16 生猪(土杂猪) 18.14元/公斤. 较昨日价格, 每公斤上涨0.09元</title>
      <description>较昨日价格, 每公斤上涨0.09元</description>
      <link>https://xt.yangzhu.vip/manage/datamap/ptype/3/areano/-1.html</link>
      <guid isPermaLink="false">2024-7-16 生猪(土杂猪)</guid>
    </item>
  </channel>
</rss>

github-actions[bot] avatar Jul 16 '24 14:07 github-actions[bot]

原来的路由出现故障,报价日期正确,数据出错,一直是7月6日的数据 2024-7-16 生猪(外三元) 18.57元/公斤. 较昨日价格, 下跌0.2元 官网应该是 https://xt.yangzhu.vip/

@KwToPA 以前是用 https://zhujia.zhuwang.cc/ 访问的,现在新官网是这个也可以吧:https://www.zhuwang.com.cn/

@TonyRL Can you re review and merge? thanks.

感谢老哥,不过 https://xt.yangzhu.vip/ 这个网站的数据范围显示的是一年,https://www.zhuwang.com.cn/ 这个只有一个月

而且路由抓的数据附带的超链接也是 https://xt.yangzhu.vip/manage/datamap/ptype/1/areano/-1.html

KwToPA avatar Jul 17 '24 02:07 KwToPA

@KwToPA 现在是用 https://zhujia.zhuwang.com.cn/ 做为主页的,而且数据超链接的也是一年范围的数据啊: image

ueiu avatar Jul 17 '24 11:07 ueiu