universal-parcel-scraper 0.786.0-main.4222 → 0.786.2-main.4228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/scraper.js +2 -1
- package/dist/carriers/bring-posten/adapter.js +6 -3
- package/dist/carriers/stone3pl/statuses.json +8 -0
- package/dist/core/catalog/hints.js +1 -1
- package/dist/core/status/language.js +2 -2
- package/dist/server/openapi.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -161,7 +161,7 @@ the command line's `track --source ParcelsApp` does the same.
|
|
|
161
161
|
<!-- GENERATED:stages -->
|
|
162
162
|
<img src="docs/assets/stages.svg" alt="DHL: Die Sendung wurde in das Zustellfahrzeug geladen.; Mondial Relay: En cours de livraison; Correios Brazil: Objeto saiu para entrega ao destinatário; Correos Express: EN REPARTO; Yamato Transport: 配達中; La Poste / Colissimo: DISTOU. All are filed under out_for_delivery." width="760">
|
|
163
163
|
|
|
164
|
-
The carrier folders record 17,
|
|
164
|
+
The carrier folders record 17,494 such statuses, each filed under one stage.
|
|
165
165
|
<!-- /GENERATED:stages -->
|
|
166
166
|
|
|
167
167
|
Wording nobody recorded yet goes through a classifier that reads seven European languages.
|
package/dist/browser/scraper.js
CHANGED
|
@@ -32059,7 +32059,7 @@ function Ml(e) {
|
|
|
32059
32059
|
if (/^(?:received in office|export to foreign provider)$/.test(t) || /^(?:(?:the )?(?:shipment|parcel|package|item) )?(?:(?:has been|was) )?(?:sent|dispatched|forwarded) abroad$/.test(t) || /^sending (?:the )?(?:package|parcel|item|shipment) from (?!.*\b(?:point|locker|shop|sender|branch)\b)[a-z][a-z .'-]{1,40}$/.test(t)) return "in_transit";
|
|
32060
32060
|
if (/^(?:posting\/collection|posted|origin scan)$|received at (?:our |the )?(?:[a-z]+ )?origin (?:office|facility|hub)|dropped off (?:after|before) (?:the )?latest drop ?off time/.test(t)) return "accepted";
|
|
32061
32061
|
if (/(?:\b(?:not|never)|n't)(?: (?:be|been|being))? accepted\b/.test(t)) return "exception";
|
|
32062
|
-
if (/accepted|picked up|pick up was successful|^drop off$|pick ?up scan|prepared the package for return to ups or pickup by ups|handed (?:over )?to (?:dpd|gls)|package received at dhl|item booked|consignment was mailed|posted at a postal point|pris en charge|prise en charge|collecte.*(?:reussi|effectue)|recupere.*boite aux lettres|depose.*point postal|remis a (?:dpd|gls)|envoi.*depose|abholung.*erfolgreich|^(?:die sendung wurde )?erfolgreich abgeholt$|eingeliefert|an (?:dpd|gls) ubergeben|paket.*(?:angenommen|ubernommen)|ritiro.*(?:riuscito|effettuato)|pres[oa] in carico|affidat[oa] a (?:dpd|gls)|depositat.*punto postale|spedizione.*impostata/.test(t) || /^item received by royal mail$|\btaken over by one of our operators\b|\bwe've received your (?:parcel|package|item) at the parcel ?shop\b|^(?:(?:the |your )?(?:item|parcel|package|shipment) )?(?:was|has been) dropped off at (?:the |a )?parcel ?shop$|^(?![^,]*\b(?:recipient|consignee|receiver|customer|addressee|buyer|pick ?up point|parcel ?shop|locker|destination)\b)[a-z][\w&' -]{0,40} has received the goods(?:, [^,]{1,40}){0,2}\.?$|^the shipment has been deposited at a seur pickup point$|^(?:the |your )?collection (?:has been |was )?(?:carried out|completed)$|^已入库|^(?:(?:the |your )?(?:item|parcel|package|shipment) )?(?:has been |was )?put into storage$/.test(t) || /^sender advised item dropped off at parcel locker$|^dropped off at postbox$/.test(t) || /^(?:the )?shipment has been taken over at the post office point$/.test(t) || /^spedizione affidata a una fedex location\b/.test(t) || /^die sendung wurde vom absender (?:im|in der|in einem|in einer) (?:[\w-]+ )?(?:paketshop|parcelshop|filiale)\b(?!.*\bnicht\b).*\babgegeben$/.test(t) || /^(?:the |your )?(?:package|parcel|shipment) (?:was|has been) dropped off by the sender at (?:the |a )?(?:hermes )?(?:paketshop|parcel ?shop)\b/.test(t) || /^sending the (?:package|parcel) at the pick ?up point$|^handing over the (?:package|parcel) to the courier$/.test(t)) return "accepted";
|
|
32062
|
+
if (/accepted|picked up|pick up was successful|^drop off$|pick ?up scan|prepared the package for return to ups or pickup by ups|handed (?:over )?to (?:dpd|gls)|package received at dhl|item booked|consignment was mailed|posted at a postal point|pris en charge|prise en charge|collecte.*(?:reussi|effectue)|recupere.*boite aux lettres|depose.*point postal|remis a (?:dpd|gls)|envoi.*depose|abholung.*erfolgreich|^(?:die sendung wurde )?erfolgreich abgeholt$|eingeliefert|an (?:dpd|gls) ubergeben|paket.*(?:angenommen|ubernommen)|ritiro.*(?:riuscito|effettuato)|pres[oa] in carico|affidat[oa] a (?:dpd|gls)|depositat.*punto postale|spedizione.*impostata/.test(t) || /^item received by royal mail$|\btaken over by one of our operators\b|\bwe've received your (?:parcel|package|item) at the parcel ?shop\b|^(?:(?:the |your )?(?:item|parcel|package|shipment) )?(?:was|has been) dropped off at (?:the |a )?parcel ?shop$|^(?![^,]*\b(?:recipient|consignee|receiver|customer|addressee|buyer|pick ?up point|parcel ?shop|locker|destination)\b)[a-z][\w&' -]{0,40} has received the goods(?:, [^,]{1,40}){0,2}\.?$|^the shipment has been deposited at a seur pickup point$|^(?:the |your )?collection (?:has been |was )?(?:carried out|completed)$|^已入库|^(?:(?:the |your )?(?:item|parcel|package|shipment) )?(?:has been |was )?put into storage$/.test(t) || /^sender advised item dropped off at parcel locker$|^dropped off at postbox$/.test(t) || /^(?:the )?shipment has been taken over at the post (?:office|locker) point$/.test(t) || /^spedizione affidata a una fedex location\b/.test(t) || /^die sendung wurde vom absender (?:im|in der|in einem|in einer) (?:[\w-]+ )?(?:paketshop|parcelshop|filiale)\b(?!.*\bnicht\b).*\babgegeben$/.test(t) || /^(?:the |your )?(?:package|parcel|shipment) (?:was|has been) dropped off by the sender at (?:the |a )?(?:hermes )?(?:paketshop|parcel ?shop)\b/.test(t) || /^sending the (?:package|parcel) at the pick ?up point$|^handing over the (?:package|parcel) to the courier$/.test(t)) return "accepted";
|
|
32063
32063
|
if (/^acceptance of the (?:package|parcel) at the delivery branch abroad$/.test(t)) return "in_transit";
|
|
32064
32064
|
if (/^acceptance of the (?:package|parcel) at the pick ?up point$/.test(t)) return "ready_for_pickup";
|
|
32065
32065
|
if (/^(?:package|parcel) received (?:&|and) scanned at (?:the )?carrier's domestic warehouse$/.test(t) || /^(?:the )?goods (?:arrive|arrived|have arrived) at (?:the )?receiving point$/.test(t) || /(?<!\b(?:no|nao) )\badmitid[oa]s?\b|\badmision (?:en origen|pais de origen)\b/.test(t) || /^aceite(?:\.|$)|\b(?:envio|objeto|objecto|encomenda|remessa) foi aceite\b/.test(t)) return "accepted";
|
|
@@ -32377,6 +32377,7 @@ var Ql = (e) => e.normalize("NFKD").replace(/\p{M}/gu, "").toLowerCase().replace
|
|
|
32377
32377
|
spainpost: "correos-spain",
|
|
32378
32378
|
portugalctt: "ctt",
|
|
32379
32379
|
portugalpostportugalctt: "ctt",
|
|
32380
|
+
postennorgenorwaypost: "bring-posten",
|
|
32380
32381
|
italypost: "poste-italiane",
|
|
32381
32382
|
italysda: "poste-italiane",
|
|
32382
32383
|
deutschepostdhlpaket: "dhl",
|
|
@@ -17,16 +17,19 @@ export class BringTracker {
|
|
|
17
17
|
signal.throwIfAborted();
|
|
18
18
|
const { response, bytes } = await fetchBounded(`https://sporing.bring.no/sporing/json/${number}?lang=en`, { signal, headers: { Accept: 'application/json', 'User-Agent': userAgentOf(this.options.userAgent) } }, { provider: 'Bring',
|
|
19
19
|
timeoutMs: Math.max(1, Math.floor(remainingMs)), maxBytes: 1_000_000, allowHttpStatuses: [404, 410], fetcher: this.options.fetcher });
|
|
20
|
+
const body = decodeText(bytes);
|
|
20
21
|
let payload;
|
|
21
22
|
try {
|
|
22
|
-
payload = JSON.parse(
|
|
23
|
+
payload = JSON.parse(body);
|
|
23
24
|
}
|
|
24
25
|
catch {
|
|
25
26
|
payload = undefined;
|
|
26
27
|
}
|
|
27
|
-
// The consumer's negative response does not identify the requested parcel.
|
|
28
|
+
// The consumer's negative response does not identify the requested parcel. The portal's own
|
|
29
|
+
// not-found comes as JSON or as the bare text "NOT FOUND", which it now sends for an unknown number.
|
|
28
30
|
if (response.status === 404 || response.status === 410) {
|
|
29
|
-
|
|
31
|
+
const notFound = isRecord(payload) ? payload.errorState === 'NOT_FOUND' : body.trim() === 'NOT FOUND';
|
|
32
|
+
throw new IndeterminateError('Bring', 'No identity-bound parcel history', notFound ? { reason: 'portal_not_found' } : undefined);
|
|
30
33
|
}
|
|
31
34
|
if (payload === undefined)
|
|
32
35
|
throw new SchemaError('Bring');
|
|
@@ -83,6 +83,14 @@
|
|
|
83
83
|
"confirmedBy": "live",
|
|
84
84
|
"firstSeen": "2026-10-25",
|
|
85
85
|
"note": "The hand-over to the last-mile carrier, not a pickup by the recipient."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"wording": "Batch delivery to carrier",
|
|
89
|
+
"stage": "in_transit",
|
|
90
|
+
"language": "en",
|
|
91
|
+
"confirmedBy": "live",
|
|
92
|
+
"firstSeen": "2026-10-28",
|
|
93
|
+
"note": "A batch handed on to the last-mile carrier, after its pickup at the destination port."
|
|
86
94
|
}
|
|
87
95
|
]
|
|
88
96
|
}
|
|
@@ -19,7 +19,7 @@ const NAME_ALIASES = {
|
|
|
19
19
|
ups: 'ups', swisspost: 'swiss-post', laposte: 'la-poste', colissimo: 'la-poste',
|
|
20
20
|
dhlecommerce: 'dhl-ecommerce', cainiao: 'aliexpress', postnl: 'spring-gds',
|
|
21
21
|
asendiausa: 'asendia', asendiaunitedstates: 'asendia', finlandpost: 'posti', spainpost: 'correos-spain',
|
|
22
|
-
portugalctt: 'ctt', portugalpostportugalctt: 'ctt',
|
|
22
|
+
portugalctt: 'ctt', portugalpostportugalctt: 'ctt', postennorgenorwaypost: 'bring-posten',
|
|
23
23
|
italypost: 'poste-italiane', italysda: 'poste-italiane', deutschepostdhlpaket: 'dhl', austriapost: 'austrian-post',
|
|
24
24
|
evri: 'evri-uk', chilepost: 'correos-chile', chilecorreos: 'correos-chile', correoschilecorreoschile: 'correos-chile',
|
|
25
25
|
// La Poste's names for its delivery partners abroad, in French or as the postal union lists them.
|
|
@@ -586,8 +586,8 @@ export function trackingLanguageStage(description) {
|
|
|
586
586
|
// Royal Mail's sender drop-offs at a parcel locker and a postbox, as providers relay them.
|
|
587
587
|
if (/^sender advised item dropped off at parcel locker$|^dropped off at postbox$/.test(text))
|
|
588
588
|
return 'accepted';
|
|
589
|
-
// Poste Italiane's drop-off at a Punto Poste in English ("presa in carico presso il Punto Poste").
|
|
590
|
-
if (/^(?:the )?shipment has been taken over at the post office point$/.test(text))
|
|
589
|
+
// Poste Italiane's drop-off at a Punto Poste or a Punto Poste-Locker in English ("presa in carico presso il Punto Poste").
|
|
590
|
+
if (/^(?:the )?shipment has been taken over at the post (?:office|locker) point$/.test(text))
|
|
591
591
|
return 'accepted';
|
|
592
592
|
// TNT Italy's drop-off at a FedEx Location, awaiting the courier, as providers relay it.
|
|
593
593
|
if (/^spedizione affidata a una fedex location\b/.test(text))
|
package/dist/server/openapi.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-parcel-scraper",
|
|
3
|
-
"version": "0.786.
|
|
3
|
+
"version": "0.786.2-main.4228",
|
|
4
4
|
"description": "Self-hosted parcel tracking: carrier detection, dedicated scrapers and optional universal providers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|