/APEStoreAssistant

Reduce the waiting time

Primary LanguagePythonApache License 2.0Apache-2.0

APEStoreAssistant

Reduce the waiting time

Features

  • Query product list
  • Query address list
  • Monitor inventory for multiple products
  • Support multiple countries
  • Notification support (Dingtalk | Bark | Feishu)
  • Automatic order placement

Usage

Use with Docker

Supported options

docker run --rm toolgallery/ape-store-assistant:main -h
-p, --products PRODUCTS 
-l, --location LOCATION
-pc, --postal-code POSTAL_CODE
--state STATE
-lp, --list-products
-c COUNTRY, --country COUNTRY cn|hk-zh|sg|jp
--code CODE 15|15-pro
-i, --interval default:5 Query interval

Query products

docker run --rm toolgallery/ape-store-assistant:main -lp -c sg --code 15-pro

Start monitoring

docker run --rm toolgallery/ape-store-assistant:main -c sg -p MTV13ZP/A MTV73ZP/A -l 329816

# message notification through dingtalk
docker run -e DINGTALK_TOKEN=yourtoken --rm toolgallery/ape-store-assistant:main -c sg -p MTV13ZP/A MTV73ZP/A -l 329816

# through bark, support both
docker run -e BARK_TOKEN=yourtoken --rm toolgallery/ape-store-assistant:main -c sg -p MTV13ZP/A MTV73ZP/A -l 329816

Query address

Only supports certain countries.

docker run --rm toolgallery/ape-store-assistant:main -la -c jp

# continue filter
docker run --rm toolgallery/ape-store-assistant:main -la -c jp -ft 青森県
docker run --rm toolgallery/ape-store-assistant:main -la -c jp -ft "青森県 山形県"

Query payment methods

Only supports certain countries.

docker run --rm toolgallery/ape-store-assistant:main -lpa -c cn

Automatic ordering

Only supports certain countries.

  • Only supports a single model.
  • Automatically select the nearest pickup time slot.
  • After successfully placing an order, please check your email for the order information.
docker run --rm toolgallery/ape-store-assistant:main -c cn -p MPVG3CH/A -l "your location" -o -onc -1 --code 14

# -o Enable order support
# -onc The number of order notification reminders, effective after the order is successful, -1 means no limit.
# --code Product model code  // remove in the future.

# The following environment variables must be provided.
DELIVERY_FIRST_NAME 
DELIVERY_LAST_NAME
DELIVERY_EMAIL
DELIVERY_PHONE
DELIVERY_IDCARD # Last 4 digits of ID card
DELIVERY_PAYMENT #  Payment method, check through -lpa, such as installments0001321713
DELIVERY_PAYMENT_NUMBER # The number of installments, regular payment is 0.

Supported environment variables

# dingtalk notification
DINGTALK_TOKEN
# bark notification
BARK_HOST
BARK_TOKEN
# feishu notification
FEISHU_TOKEN