Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import requests
- import time
- username = "name"
- password = "pass"
- while True:
- try:
- r = requests.post("https://tauf-fw.mendelu.cz/login", timeout=0.9, data={'username': username, 'password': password})
- print r.status_code
- time.sleep( 1.0 )
- except requests.exceptions.Timeout:
- print "Timeout"
- except:
- print "Error"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement