Demand: Taobao Double Eleven bought a down jacket from Feile, bought a big one, but wanted to exchange it, the smaller one has been out of stock, ask customer service, and I don't know when it will be replenished, so I have been paying attention to the product dynamics in time. It was too troublesome to manually monitor whether the goods were in stock, so I wrote a software to monitor whether the goods were in stock and then notified me by email.
Principle:No encryption algorithms are involved, which is to obtain the response content parsing html code through the HTTP GET request to obtain the product inventory.
After running on the server for 2 days, I finally found that it was in stock, as shown below:
The program is a console application, which obtains product information once a minute, outputs inventory, and sends an email notification if the inventory is not equal to 0, as shown in the figure below:
The source code is for learning and communication purposes only, please do not use it for illegal purposes.
Source code download:
Tourists, if you want to see the hidden content of this post, please Reply
|