There are two parameters here, namely area and skuids
- area is the area code. Here I have counted the area codes of all districts and counties across the country. Users can construct them according to the actual address
- skuids is the information ID of the product
After filling in these two items, two statuses will be displayed to determine whether they are in stock or out of stock. The details are shown in the figure below
Simply write the python code. For example, our address is Dingfuzhuang, Chaoyang District, Beijing, area_id=1_72_4211, and the product is a graphics card 100018165320. It is currently out of stock. Once it is in stock, it will be sent to WeChat for notification.
# -*- coding: utf-8 -*-
'''
@Time : 19/07/2023 21:53
@Author : AnTi
@File : test2.py
'''
import requests
weixin_message = ""