Store session data returned by login() and use renew() - anticapum - Handle Università Politecnica delle Marche captive portal
HTML hg clone https://bitbucket.org/iamleot/anticapum
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR changeset ccb59827041b40818245f5bbce4f06558341a76e
DIR parent 17ad5c151fba32d5c8996dca63c7203dfd993ba1
HTML Author: Leonardo Taccari <iamleot@gmail.com>
Date: Thu, 11 Jan 2018 23:24:03
Store session data returned by login() and use renew()
Diffstat:
anticapum.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff -r 17ad5c151fba -r ccb59827041b anticapum.py
--- a/anticapum.py Thu Jan 11 23:21:08 2018 +0100
+++ b/anticapum.py Thu Jan 11 23:24:03 2018 +0100
@@ -139,6 +139,7 @@
username, password = credential()
+ s = login(username, password)
while True:
- login(username, password)
time.sleep(ANTICAPUM_SLEEP)
+ renew(s)