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): Add New Route for UPS Tracking #17941

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Aquabet
Copy link
Contributor

@Aquabet Aquabet commented Dec 19, 2024

Involved Issue / 该 PR 相关 Issue

Close #

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

/ups/track/1Z78R6790470567520

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

发现关于/utils/parse-date的不明bug,会导致parseDate('12/17/2024 2:29 PM', 'MM/DD/YYYY h:mm A')中的AM/PM无法正确解析。
UPS的时间记录根据事件发生城市所在时区。数据量太大,短时间无法完成时区正确。

@github-actions github-actions bot added the Route label Dec 19, 2024
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/ups/track/1Z78R6790470567520 - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>UPS Tracking - 1Z78R6790470567520</title>
    <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
    <atom:link href="http://localhost:1200/ups/track/1Z78R6790470567520" rel="self" type="application/rss+xml"></atom:link>
    <description>UPS Tracking - 1Z78R6790470567520 - Powered by RSSHub</description>
    <generator>RSSHub</generator>
    <webMaster>[email protected] (RSSHub)</webMaster>
    <language>en</language>
    <lastBuildDate>Thu, 19 Dec 2024 16:54:28 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>Delivered: REDMOND, WA, US</title>
      <description>Status: Delivered &lt;br&gt;
        Location: REDMOND, WA, US &lt;br&gt;
        Date and Time: 10/31/2024 6:06 PM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Thu, 31 Oct 2024 10:06:00 GMT</pubDate>
    </item>
    <item>
      <title>Out for Delivery: Redmond, WA, United States</title>
      <description>Status: Out for Delivery &lt;br&gt;
        Location: Redmond, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 9:26 AM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Thu, 31 Oct 2024 01:26:00 GMT</pubDate>
    </item>
    <item>
      <title>On the Way: Redmond, WA, United States</title>
      <description>Status: On the Way &lt;br&gt;
        Location: Redmond, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 6:17 AM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 22:17:00 GMT</pubDate>
    </item>
    <item>
      <title>Cleared Import Customs:</title>
      <description>Status: Cleared Import Customs &lt;br&gt;
        Location: &lt;br&gt;
        Date and Time: 10/30/2024 9:23 AM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 01:23:00 GMT</pubDate>
    </item>
    <item>
      <title>We Have Your Package: Shanghai, China</title>
      <description>Status: We Have Your Package &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 2:32 PM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 06:32:00 GMT</pubDate>
    </item>
  </channel>
</rss>

@github-actions github-actions bot added the Auto: Route Test Complete Auto route test has finished on given PR label Dec 19, 2024
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/ups/track/1Z78R6790470567520 - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>UPS Tracking - 1Z78R6790470567520</title>
    <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
    <atom:link href="http://localhost:1200/ups/track/1Z78R6790470567520" rel="self" type="application/rss+xml"></atom:link>
    <description>UPS Tracking - 1Z78R6790470567520 - Powered by RSSHub</description>
    <generator>RSSHub</generator>
    <webMaster>[email protected] (RSSHub)</webMaster>
    <language>en</language>
    <lastBuildDate>Thu, 19 Dec 2024 17:44:02 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>Delivered: REDMOND, WA, US</title>
      <description>Status: Delivered &lt;br&gt;
        Location: REDMOND, WA, US &lt;br&gt;
        Date and Time: 10/31/2024 6:06 PM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Thu, 31 Oct 2024 10:06:00 GMT</pubDate>
    </item>
    <item>
      <title>Out for Delivery: Redmond, WA, United States</title>
      <description>Status: Out for Delivery &lt;br&gt;
        Location: Redmond, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 9:26 AM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Thu, 31 Oct 2024 01:26:00 GMT</pubDate>
    </item>
    <item>
      <title>On the Way: Redmond, WA, United States</title>
      <description>Status: On the Way &lt;br&gt;
        Location: Redmond, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 6:17 AM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 22:17:00 GMT</pubDate>
    </item>
    <item>
      <title>Cleared Import Customs:</title>
      <description>Status: Cleared Import Customs &lt;br&gt;
        Location: &lt;br&gt;
        Date and Time: 10/30/2024 9:23 AM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 01:23:00 GMT</pubDate>
    </item>
    <item>
      <title>We Have Your Package: Shanghai, China</title>
      <description>Status: We Have Your Package &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 2:32 PM</description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 06:32:00 GMT</pubDate>
    </item>
  </channel>
</rss>

},
radar: [
{
source: ['ups.com/track?loc=en_US&tracknum=:trackingNumber'],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source cannot match search parameter

target: '/ups/track/:trackingNumber',
},
],
name: 'UPS Tracking',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not repeat namespace name

in route name


// skip loading images, stylesheets, and fonts
page.on('request', (request) => {
if (['image', 'stylesheet', 'font'].includes(request.resourceType())) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (['image', 'stylesheet', 'font'].includes(request.resourceType())) {
if (['image', 'stylesheet', 'font', 'ping', 'fetch'].includes(request.resourceType())) {

await page.goto(url, { waitUntil: 'domcontentloaded' });

await page.waitForSelector('tr[id^="stApp_ShpmtProg_LVP_progress_row_"]', {
timeout: 30000,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not wait for 30s, the browser will be closed by RSSHub

setTimeout(() => {
browser.close();
}, 30000);

Comment on lines 89 to 98
return {
title: `${status}: ${location}`,
link: url,
description: `
Status: ${status} <br>
Location: ${location} <br>
Date and Time: ${date} ${time}
`.trim(),
pubDate: parseDate(formattedDateTime, 'MM/DD/YYYY h:mm A'),
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a guid as link is not unique

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UPS does not provide a separate page for each tracking record. That's why I'm linking each record to the tracking page.

const $ = load(content);

// Extract tracking events
const items = $('tr[id^="stApp_ShpmtProg_LVP_progress_row_"]')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better if you can intercept the response of /track/api/Track/GetStatus since it provides 22 shipment progress activities instead of 6 only (from /ups/track/1Z78R6790470567520)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the official UPS API /track/api/Track/GetStatus requires OAuth 2.0, which involves account registration and a payment method, so I had to rely on scraping to fetch updates.

- Implemented tracking functionality in `lib/routes/ups/track.ts`
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/ups/track/1Z78R6790470567520 - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>UPS Tracking - 1Z78R6790470567520</title>
    <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
    <atom:link href="http://localhost:1200/ups/track/1Z78R6790470567520" rel="self" type="application/rss+xml"></atom:link>
    <description>UPS Tracking - 1Z78R6790470567520 - Powered by RSSHub</description>
    <generator>RSSHub</generator>
    <webMaster>[email protected] (RSSHub)</webMaster>
    <language>en</language>
    <lastBuildDate>Sun, 22 Dec 2024 20:34:47 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>Delivered</title>
      <description>Status: Delivered &lt;br&gt;
        Location: REDMOND, WA, US &lt;br&gt;
        Date and Time: 10/31/2024 6:06 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Thu, 31 Oct 2024 10:06:00 GMT</pubDate>
    </item>
    <item>
      <title>Out for Delivery</title>
      <description>Status: Out for Delivery &lt;br&gt;
        Location: Redmond, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 9:26 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Thu, 31 Oct 2024 01:26:00 GMT</pubDate>
    </item>
    <item>
      <title>On the Way</title>
      <description>Status: On the Way &lt;br&gt;
        Location: Redmond, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 6:17 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 22:17:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Seattle, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 5:20 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 21:20:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Seattle, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 4:36 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 20:36:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Ontario, CA, United States &lt;br&gt;
        Date and Time: 10/31/2024 2:03 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 18:03:00 GMT</pubDate>
    </item>
    <item>
      <title>Import Scan</title>
      <description>Status: Import Scan &lt;br&gt;
        Location: Ontario, CA, United States &lt;br&gt;
        Date and Time: 10/30/2024 10:54 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 14:54:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/30/2024 9:21 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 13:21:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Ontario, CA, United States &lt;br&gt;
        Date and Time: 10/30/2024 9:20 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 13:20:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Anchorage, AK, United States &lt;br&gt;
        Date and Time: 10/30/2024 4:27 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 08:27:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Anchorage, AK, United States &lt;br&gt;
        Date and Time: 10/30/2024 3:26 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 07:26:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Anchorage, AK, United States &lt;br&gt;
        Date and Time: 10/30/2024 12:52 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 04:52:00 GMT</pubDate>
    </item>
    <item>
      <title>Cleared Import Customs</title>
      <description>Status: Cleared Import Customs &lt;br&gt;
        Location: Your package has cleared customs and is on the way. &lt;br&gt;
        Date and Time: 10/30/2024 9:23 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 01:23:00 GMT</pubDate>
    </item>
    <item>
      <title>Your package is in transit. We&#39;re updating plans to schedule your delivery. / The package will be forwarded to a UPS facility in the destination city.</title>
      <description>Status: Your package is in transit. We&#39;re updating plans to schedule your delivery. / The package will be forwarded to a UPS facility in the destination city. &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 11:43 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 15:43:00 GMT</pubDate>
    </item>
    <item>
      <title>Your package is in transit. We&#39;re updating plans to schedule your delivery.</title>
      <description>Status: Your package is in transit. We&#39;re updating plans to schedule your delivery. &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 11:21 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 15:21:00 GMT</pubDate>
    </item>
    <item>
      <title>Export Scan</title>
      <description>Status: Export Scan &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 7:22 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 11:22:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 6:45 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 10:45:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 6:30 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 10:30:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 3:55 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 07:55:00 GMT</pubDate>
    </item>
    <item>
      <title>We Have Your Package</title>
      <description>Status: We Have Your Package &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 2:32 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 06:32:00 GMT</pubDate>
    </item>
    <item>
      <title>The package is at the clearing agency awaiting final release.</title>
      <description>Status: The package is at the clearing agency awaiting final release. &lt;br&gt;
        Location: The package is at the clearing agency awaiting final release. &lt;br&gt;
        Date and Time: 10/29/2024 1:31 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Mon, 28 Oct 2024 17:31:00 GMT</pubDate>
    </item>
    <item>
      <title>Label Created</title>
      <description>Status: Label Created &lt;br&gt;
        Location: China &lt;br&gt;
        Date and Time: Not Provided
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Invalid Date</pubDate>
    </item>
  </channel>
</rss>

@Aquabet Aquabet requested a review from TonyRL December 22, 2024 20:43
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/ups/track/1Z78R6790470567520 - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>UPS Tracking - 1Z78R6790470567520</title>
    <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
    <atom:link href="http://localhost:1200/ups/track/1Z78R6790470567520" rel="self" type="application/rss+xml"></atom:link>
    <description>UPS Tracking - 1Z78R6790470567520 - Powered by RSSHub</description>
    <generator>RSSHub</generator>
    <webMaster>[email protected] (RSSHub)</webMaster>
    <language>en</language>
    <lastBuildDate>Sun, 22 Dec 2024 20:43:15 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>Delivered</title>
      <description>Status: Delivered &lt;br&gt;
        Location: REDMOND, WA, US &lt;br&gt;
        Date and Time: 10/31/2024 6:06 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Thu, 31 Oct 2024 10:06:00 GMT</pubDate>
    </item>
    <item>
      <title>Out for Delivery</title>
      <description>Status: Out for Delivery &lt;br&gt;
        Location: Redmond, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 9:26 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Thu, 31 Oct 2024 01:26:00 GMT</pubDate>
    </item>
    <item>
      <title>On the Way</title>
      <description>Status: On the Way &lt;br&gt;
        Location: Redmond, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 6:17 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 22:17:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Seattle, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 5:20 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 21:20:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Seattle, WA, United States &lt;br&gt;
        Date and Time: 10/31/2024 4:36 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 20:36:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Ontario, CA, United States &lt;br&gt;
        Date and Time: 10/31/2024 2:03 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 18:03:00 GMT</pubDate>
    </item>
    <item>
      <title>Import Scan</title>
      <description>Status: Import Scan &lt;br&gt;
        Location: Ontario, CA, United States &lt;br&gt;
        Date and Time: 10/30/2024 10:54 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 14:54:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/30/2024 9:21 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 13:21:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Ontario, CA, United States &lt;br&gt;
        Date and Time: 10/30/2024 9:20 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 13:20:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Anchorage, AK, United States &lt;br&gt;
        Date and Time: 10/30/2024 4:27 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 08:27:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Anchorage, AK, United States &lt;br&gt;
        Date and Time: 10/30/2024 3:26 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 07:26:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Anchorage, AK, United States &lt;br&gt;
        Date and Time: 10/30/2024 12:52 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 04:52:00 GMT</pubDate>
    </item>
    <item>
      <title>Cleared Import Customs</title>
      <description>Status: Cleared Import Customs &lt;br&gt;
        Location: Your package has cleared customs and is on the way. &lt;br&gt;
        Date and Time: 10/30/2024 9:23 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Wed, 30 Oct 2024 01:23:00 GMT</pubDate>
    </item>
    <item>
      <title>Your package is in transit. We&#39;re updating plans to schedule your delivery. / The package will be forwarded to a UPS facility in the destination city.</title>
      <description>Status: Your package is in transit. We&#39;re updating plans to schedule your delivery. / The package will be forwarded to a UPS facility in the destination city. &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 11:43 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 15:43:00 GMT</pubDate>
    </item>
    <item>
      <title>Your package is in transit. We&#39;re updating plans to schedule your delivery.</title>
      <description>Status: Your package is in transit. We&#39;re updating plans to schedule your delivery. &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 11:21 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 15:21:00 GMT</pubDate>
    </item>
    <item>
      <title>Export Scan</title>
      <description>Status: Export Scan &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 7:22 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 11:22:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 6:45 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 10:45:00 GMT</pubDate>
    </item>
    <item>
      <title>Departed from Facility</title>
      <description>Status: Departed from Facility &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 6:30 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 10:30:00 GMT</pubDate>
    </item>
    <item>
      <title>Arrived at Facility</title>
      <description>Status: Arrived at Facility &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 3:55 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 07:55:00 GMT</pubDate>
    </item>
    <item>
      <title>We Have Your Package</title>
      <description>Status: We Have Your Package &lt;br&gt;
        Location: Shanghai, China &lt;br&gt;
        Date and Time: 10/29/2024 2:32 PM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Tue, 29 Oct 2024 06:32:00 GMT</pubDate>
    </item>
    <item>
      <title>The package is at the clearing agency awaiting final release.</title>
      <description>Status: The package is at the clearing agency awaiting final release. &lt;br&gt;
        Location: The package is at the clearing agency awaiting final release. &lt;br&gt;
        Date and Time: 10/29/2024 1:31 AM
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Mon, 28 Oct 2024 17:31:00 GMT</pubDate>
    </item>
    <item>
      <title>Label Created</title>
      <description>Status: Label Created &lt;br&gt;
        Location: China &lt;br&gt;
        Date and Time: Not Provided
      </description>
      <link>https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</link>
      <guid isPermaLink="false">https://www.ups.com/track?loc=en_US&amp;tracknum=1Z78R6790470567520</guid>
      <pubDate>Invalid Date</pubDate>
    </item>
  </channel>
</rss>

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants