cheat.sh
cheat.sh copied to clipboard
Python lib for making calls
If there was a python lib for this, it could be used within the python shell in my ide (PyCharm), or probably any other decent ide, with little or no special plugins needed. Secondarily, a windows command option would be helpful since the bash script nor curl works with windows without something like cywin. (and please no windows bashing, I prefer Linux as well, but you work with what you are given at many jobs).
The requests module in python can get the job done.
and there is a small snippet
def cht(query):
import requests
ans=requests.get("https://cht.sh/"+query+"?T")
print(ans.text)
Then you can just call something cht("python/how+to+make+a+list")