Created
March 15, 2020 17:34
-
-
Save polyakoff/bba79c0799cf62efe4c2c0f2d78eb93a to your computer and use it in GitHub Desktop.
python function in order to login to stackoverflow daily using zapier :3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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