This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.7 | |
""" | |
This program checks a tracking ID on servientrega.com | |
The Outcome will be sent via Telegram to the TELEGRAM_CONTACT_ID of your preference | |
Change Debug to False to avoid printing information on the shell | |
Set your desired WAIT_MINUTES time for the loop | |
And make sure you use your desired SERVIENTREGA_TRACKING_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import WebDriverWait | |
try: | |
# access default config |