Operations 3 min read

Automate Shanghai Grocery Delivery Slots with Shell, AutoJs, and Python

This guide shows how to use a shell script to check delivery windows, set up AutoJsPro on Android for automated ordering, and run a Python program for Sam's Club, providing practical automation tools for securing groceries during lockdowns.

Programmer DD
Programmer DD
Programmer DD
Automate Shanghai Grocery Delivery Slots with Shell, AutoJs, and Python

During the Shanghai lockdown, many residents struggled to secure fresh groceries, repeatedly trying to "抢菜".

To help, the author shares three practical resources. Material 1 is a shell command that queries delivery time slots for services like Dingdong and Hema, allowing users to check availability and receive push notifications.

Material 2 describes a solution for Android using AutoJsPro. After installing VS Code and the Auto.js‑Pro‑Ext plugin, one installs the AutoJs app on the phone, enables accessibility services, and connects the phone and computer to the same Wi‑Fi. VS Code can then attach to the device for debugging.

Material 3 introduces a Python program for Sam’s Club (a membership supermarket in Shanghai). By capturing network packets and modifying request parameters, the script can automate the ordering process.

All materials are provided for learning purposes only and should not be used for illegal activities.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Pythonautomationshell scriptgrocery delivery
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.