Open dstrohl opened 6 years ago
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")
Please never import a library inside a function, we want to encourage good coding practices, especially when making a cheat sheet.
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).