[QUOTE=TheMaxx;29249]i would use the requests lib for this just out of simplicity of its api, though you can do this with urllib as well. Other than that, just eval the response?
Just curious, what is this being used for?[/QUOTE]
Thanks for the response. I will check into what you suggested (probably will have the time tomorrow). I was also told the following from another community -
"use requests. http://docs.python-requests.org/en/latest/
then all you need to do is this:
mycode = requests.get(“http://example.com/code.txt”)
exec mycode"
I’ll look into both solutions. Now what it’s for…
I’m writing a library of custom scripts for a pipeline. I do not want the meat and potatoes of the scripts set locally on users machines for updating purposes. I’m not looking to have a lot of iterations of this script floating around for organizational purposes. So, although I could call upon the script via local server, I want to be able to call upon it via website URL. (scripts will also be used throughout a team).
Everything is owned by yours truly, so no shady business. I just want to create an online DB of my own scripts/tools that can be pulled from.