Skip to content

Instantly share code, notes, and snippets.

@polyakoff
Created March 15, 2020 17:34
Show Gist options
  • Save polyakoff/bba79c0799cf62efe4c2c0f2d78eb93a to your computer and use it in GitHub Desktop.
Save polyakoff/bba79c0799cf62efe4c2c0f2d78eb93a to your computer and use it in GitHub Desktop.
python function in order to login to stackoverflow daily using zapier :3
import requests
url = 'https://stackoverflow.com/users/login'
credentials = {'ssrc': 'login', 'email': '', 'password': ''}
response = requests.post(url, credentials)
response.raise_for_status() # optional but good practice in case the call fails!
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment