After buying the new Oneplus 6T, I was tracking the package throw their website. The information provided is awesome, but it was a bit lame having to go there and refresh it everytime.
Creates a scrypt that checks the website every 2 minutes and if something changed, sends a email showing this changes.
Make sure you have the following variables:
- EMAIL_SERVICE, check the available services.
- EMAIL_SENDER, the email that will send
- PASSWORD, your password
- EMAIL_RECEIVER, the receiver of the email
npm start TRACKING_NUMBER
This is not the most clean or efficient code and there is probably other solutions. Just made it for fun. Fell free to change whatever you want.