A simple script to monitor availability of products on Kim Đồng Publisher, IPM Vietnam and Tiki Vietnam.
Not all edge cases are tested. A friend of mine asked me to create this script, and a minimum viable product is enough in this use case.
- Python 3 and pip (to install dependencies) if using source code directly.
- None if running an executable on Windows.
-
Retrieve an URL of your favorite product. For examples:
- Kim Đồng Publisher: https://nxbkimdong.com.vn/products/naruto-tap-67
- IPM Vietnam: https://ipm.vn/products/mien-dat-hua-20
- Tiki Vietnam: https://tiki.vn/dien-thoai-iphone-12-128gb-hang-chinh-hang-p123348908.html?spid=70766433
-
Enter product to the list in terminal
-
Enter Y to confirm the list, or continue to add new product.
-
Enter an integer, which represents interval between requests, in seconds. The minimum is 1.
-
Now, the results will be shown in the console.
Note, as there is request/response/processing time, a timestamp as shown in console is not the same as provided interval.
Copyright (c) 2021 Hung Huu Vu.
Licensed under the MIT License.