Snippets

Hello world

if __name__ == "__main__":
    print("Hello, world!")

Directories

Remove

import shutil
shutil.rmtree(path)

Web

Get

requests.get(url).content.decode(charset)