In case you don't see the python code click here
You just need python 3.X and you may need to run pip3 install requests
to install the necessary lib to make http requests.
To be able to run this, you need to create a bot in telegram, then get the api key from the bot and get your chat id, it's like your used id.
After that edit the file and change the variables.
And now you are able to run the script 24/7 by leaving it running.
If you are on linux there's a thing called Screens!
I do create a screen with this command screen -S nameOfScreen
for example screen -S glsTracker
It should automatically put you inside the screen, if not run screen -r nameOfScreen
if it seems to not be picking it up run screen -ls
to view all screens.
Now execute the script with python gls-tracker.py
and leave the screen with Ctrl + A
, now press the key D
.
You should be out now.