The Python package for Taiwan parcel tracking.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parcel_tw-0.0.1.tar.gz.
File metadata
- Download URL: parcel_tw-0.0.1.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bf978e1aab1d37cd3d90edb6b7254863e5c55a90cc4057c9771f88824bf254e
|
|
| MD5 |
ac7982634c7057fac7f83d8df86bd948
|
|
| BLAKE2b-256 |
82ece3c438f4875d15681fc418c712903721e2eb41759caed7fdc26c6d7b008c
|
File details
Details for the file parcel_tw-0.0.1-py3-none-any.whl.
File metadata
- Download URL: parcel_tw-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f259b0cc85698cba2c4905cfb8f2ffbea350f96f5d9cc926ca8e87996491b32
|
|
| MD5 |
edbcfc33a177e46fd67c89ad5dd6c992
|
|
| BLAKE2b-256 |
311b55bc6f6b001c7cf942ccc520e1337c3ea8f5f22fc2cb5a4922000dee1877
|