Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Created May 23, 2022 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexalouit/44cb27052a7994978451ded09d333d22 to your computer and use it in GitHub Desktop.
Save alexalouit/44cb27052a7994978451ded09d333d22 to your computer and use it in GitHub Desktop.
zut.io python simple client
#!/usr/bin/env python
import requests
endpoint = 'https://zut.io/api'
username = 'JohnDoe'
password = 'YWNlZGVjZDAwNjdiNjRkNjkyYWNkZTVmYjA4MGE3OTY'
payload = { 'url': 'http://www.yahoo.co.uk/' }
response = requests.post(endpoint, json=payload, auth=(username, password))
print(response.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment