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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| parcel_tw-0.0.1.tar.gz | 28.2 kB | Without provenance | Details for parcel_tw-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parcel_tw-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for parcel_tw-0.0.1-py3-none-any.whl |
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
|
Security for parcel-tw 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.