I have a python script from a Pastebin link such as https://pastebin.com/raw/hz8p3B5Y:
import requests
requests.get('https://api.telegram.org/******/sendMessage?chat_id=******&text=***** # Send notification to my Telegram
I want to run a local python script that could load the raw Pastebin and execute it.
How about using bash? You could curl then execute the script with Python
curl
will print URL's content to stdoutpython -
will indicate that source come from from stdinRelated to curl and run python script