from jd_assistant import Assistant

import time,datetime
if __name__ == '__main__':
    assi = Assistant()
    #100010428315,100018640836,100018640794,100010428313,100018640832,100018640798,
    sku_ids = '100009808185'  # 商品id
    area = '1_2800_2850'  # 区域id
    while True:
        for sku_id in sku_ids.split(","):
            flag = assi.get_single_item_stock(sku_id,1,area)
            if flag:
                print(sku_id + str(datetime.datetime.now()) +" 有货" )
            else:
                print("无货")
            time.sleep(3)