Skip to main content

parcel-tw


Box icons created by Good Ware - Flaticon


English 繁體中文

About

parcel_tw is a Python package for tracking the status of packages in Taiwan. It supports many logistics systems (7-11, FamilyMart, OK, and Shopee).

Installation

Requirements

  • Python 3.10+
  • tesseract-ocr

Since the E-tracking system of 7-11 cannot bypass the Captcha detection, OCR is needed to parse the verification code.

sudo apt install tesseract-ocr

Install package manually

git clone https://github.com/ryanycs/parcel-tw.git
cd parcel-tw
pip install .

Usage

from parcel_tw import track, Platform

order_id = "order_id here"
track(Platform.SevenEleven, order_id) # track 7-11 package
track(Platform.FamilyMart, order_id) # track FamilyMart package
track(Platform.OKMart, order_id) # track OK Mart package
track(Platform.Shopee, order_id) # track Shopee package

track() will return a TrackingInfo object, which contains the status of the package.

result = track(Platform.SevenEleven, order_id)

print(result.order_id) # order id
print(result.platform) # logistics platform
print(result.status) # package status
print(result.time) # update time
print(result.is_delivered) # is delivered
print(result.raw_data) # Package details after crawler analysis (dict)

Roadmap

  • 7-11
  • FamilyMart
  • Hi-Life
  • OK Mart
  • Shopee
  • Chunghwa Post
  • Upload to PyPI
  • asyncio crawler

License

Distributed under the MIT License. See LICENSE for more information.

Metadata

Release files for parcel-tw 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parcel-tw 0.0.1
File Size Uploaded
parcel_tw-0.0.1.tar.gz 28.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parcel-tw 0.0.1
File Interpreter ABI Platform
parcel_tw-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 39.8 kB

Release files / parcel_tw-0.0.1.tar.gz

Download URL parcel_tw-0.0.1.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2bf978e1aab1d37cd3d90edb6b7254863e5c55a90cc4057c9771f88824bf254e
BLAKE2b-256 checksum
How to use checksums
82ece3c438f4875d15681fc418c712903721e2eb41759caed7fdc26c6d7b008c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / parcel_tw-0.0.1-py3-none-any.whl

Download URL parcel_tw-0.0.1-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f259b0cc85698cba2c4905cfb8f2ffbea350f96f5d9cc926ca8e87996491b32
BLAKE2b-256 checksum
How to use checksums
311b55bc6f6b001c7cf942ccc520e1337c3ea8f5f22fc2cb5a4922000dee1877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page