From 3c1b8d5c8947bf0aa3e929c21f59eaf06aba33af Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Thu, 14 Apr 2016 17:30:30 +0200 Subject: more general monitor_soft_raid --- tk_bbl.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 tk_bbl.py (limited to 'tk_bbl.py') diff --git a/tk_bbl.py b/tk_bbl.py deleted file mode 100755 index f7ed30f..0000000 --- a/tk_bbl.py +++ /dev/null @@ -1,25 +0,0 @@ -import time, mechanize, re, random - -browser = mechanize.Browser() -browser.set_handle_robots(False) -browser.set_handle_refresh(False) -browser.addheaders = [('User-agent', 'Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0')] - -rand = random.randrange(1000000000,9999999999) -time = int(time.time()) -state = str(time) + str(rand); - -browser.open("https://www.telekombasketball.de") -browser.open("https://accounts.login.idm.telekom.com/oauth2/auth?response_type=code&client_id=10LIVESAM30000004901BEKOBBL0000000000000&scope=openid&redirect_uri=http:%2F%2Fwww.telekombasketball.de%2Foauth.php%3Frequest%3Dlogin%26headto%3Dhttp:%2F%2Fwww.telekombasketball.de%2F&state="+state+"&claims=%7B%22id_token%22%3A%7B%22urn%3Atelekom.com%3Aall%22%3Anull%7D%7D") - -user = "" -password = "" -browser.select_form(name="login") -browser.form['pw_usr'] = user -browser.form['pw_pwd'] = password -browser.submit() - -browser.open("https://www.telekombasketball.de/videoplayer/player.php?play=" + str(2731)) -response = browser.response().read() -mobileUrl = re.search('mobileUrl: \"(.*?)\"', response).group(1) -print mobileUrl -- cgit v1.2.3