collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 156
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Search


Author Topic: 2108 IBL Draft Recovery  (Read 5277 times)

0 Members and 1 Guest are viewing this topic.

Offline APMP

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 324
  • See ball, hit ball, home run.
    • View Profile
2108 IBL Draft Recovery
« on: May 08, 2017, 01:57:31 PM »
So I was able to recover the first 4+ rounds of the IBL draft from a version of the Draft Selections page that was in my Google Chrome cache from Friday.  If anybody here has a more recent cached version of that page, this same process can be used to recover additional rounds.

The Chrome cached version of the page was compressed in gzip, so I used a modified version of the python code at https://gehrcke.de/2013/09/recover-a-gzipped-html-response-from-the-browser-cache/ to decompress the page.

Attached are the cached compressed page from Friday (called "ootpou.htm") and the recovered html page (called "decoded.html") after running the python code.  As you can see, the decoded HTML page renders just fine in browsers and includes all of the picks in the first four rounds, plus the first two picks in round 5.

So does anybody have a Google Chrome cache of the IBL draft selections page from later in the weekend?
« Last Edit: May 08, 2017, 02:02:45 PM by APMP »

Offline Huckleberry

  • Administrator
  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #1 on: May 08, 2017, 03:11:10 PM »
Sweet, I'll check the home CPU later today if I get time. My latest one here at work was 14:29:54 GMT so it was before yours. Obviously I check the ABL far more often.

Offline Claybor

  • Former Owner
  • Full Member
  • *****
  • Posts: 161
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #2 on: May 08, 2017, 03:43:19 PM »
That is excellent news.

Offline APMP

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 324
  • See ball, hit ball, home run.
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #3 on: May 08, 2017, 03:57:19 PM »
I'll check my own laptop at home too just in case (the one I restored was from my work laptop).

Offline Coop

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 475
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #4 on: May 08, 2017, 04:33:40 PM »
Reviewed it; all of my picks shown on the file are correct.

Offline Huckleberry

  • Administrator
  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #5 on: May 08, 2017, 04:59:42 PM »
I'm not able to get the python script to run. Getting an invalid syntax error on line 12 (the print line).

Any help? I'll be back in a couple of hours.

Offline Txhorns

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 319
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #6 on: May 08, 2017, 05:29:02 PM »
Thats great news. Lets go with what has been found and restart the draft from there.  As far as free agents go I think we are just going to have to move forward with what we have.

Offline APMP

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 324
  • See ball, hit ball, home run.
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #7 on: May 08, 2017, 05:38:18 PM »
I'm not able to get the python script to run. Getting an invalid syntax error on line 12 (the print line).

Any help? I'll be back in a couple of hours.
Yes, I got that too. The parsing range is wrong. It should be from 10 to fifty something. Hang on, I'll cut and paste what I used (I also output to a file).

Also make sure you're running Python 2.7 (ie the legacy version).

Offline Coop

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 475
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #8 on: May 08, 2017, 05:45:04 PM »
I agree with Txhorns.

Offline APMP

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 324
  • See ball, hit ball, home run.
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #9 on: May 08, 2017, 06:13:15 PM »
Huck,

Here's the modified code that I used (parse range is 10-59, printed to an html file that should be renderable by a browser)

import re
from binascii import unhexlify
from gzip import GzipFile
from itertools import chain
from StringIO import StringIO
 
with open("ootpou.htm", "rb") as f:
    html = f.read().decode("utf-8")

hexlines = re.findall("<pre>(.*?)</pre>", html, flags=re.S)[2].splitlines()
hexdata = ''.join(chain.from_iterable(l[10:59].split() for l in hexlines))
outfile = open('decoded.html','w')
print >> outfile, GzipFile(fileobj=StringIO(unhexlify(hexdata))).read()
outfile.close()
« Last Edit: May 08, 2017, 06:15:18 PM by APMP »

Offline Huckleberry

  • Administrator
  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #10 on: May 08, 2017, 07:32:46 PM »
Okay, thanks. And yeah, I was trying to run 3.6 so I'm uninstalling that now and will then run 2.7 and see what the latest version of the draft I have is.

Offline Huckleberry

  • Administrator
  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #11 on: May 08, 2017, 07:46:30 PM »
Well I got it to work but my cache only has the times I looked at it after it was messed up. So right now your version is the best we have.

Anyone else tried this process?

Offline Txhorns

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 319
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #12 on: May 08, 2017, 08:12:44 PM »
Shit I dont even know how to find the cache

Offline APMP

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 324
  • See ball, hit ball, home run.
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #13 on: May 08, 2017, 08:23:49 PM »
Shit I dont even know how to find the cache

In Chrome, type "chrome://cache" in the address bar.  Then look for "http://www.worldbaseballassociation.com/cgi-bin/ootpou.pl?page=draftPicks" (searching for "draftpicks" usually does the trick).  Once you find it, click on it and see what the "Date" line near the top says.  Hopefully, it'll be after Friday lunchtime and before the IBL draft got hosed.  If so, save the webpage (it'll be called ootpou.htm by default) and attach it to a post here.  Huck or I can take care of the rest.
« Last Edit: May 08, 2017, 08:25:50 PM by APMP »

Offline Huckleberry

  • Administrator
  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #14 on: May 08, 2017, 08:24:23 PM »
If you're in Chrome just put this in the address bar:

chrome://cache/

and hit enter. Then search for "page=draftPick" in there.

Edit - what he said.

Offline APMP

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 324
  • See ball, hit ball, home run.
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #15 on: May 08, 2017, 08:33:04 PM »
Good news, the cached version on my home laptop was from Saturday morning, so I was able to recover rounds 5, 6, and 7 along with half of round 8.  Please see attached. 

I've tapped out possibilities here, so let me know if anybody has a newer cached version.


Offline AndyHustle

  • Team Owner
  • Full Member
  • *****
  • Posts: 214
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #16 on: May 08, 2017, 08:59:18 PM »
Huck,

Here's the modified code that I used (parse range is 10-59, printed to an html file that should be renderable by a browser)

import re
from binascii import unhexlify
from gzip import GzipFile
from itertools import chain
from StringIO import StringIO
 
with open("ootpou.htm", "rb") as f:
    html = f.read().decode("utf-8")

hexlines = re.findall("<pre>(.*?)</pre>", html, flags=re.S)[2].splitlines()
hexdata = ''.join(chain.from_iterable(l[10:59].split() for l in hexlines))
outfile = open('decoded.html','w')
print >> outfile, GzipFile(fileobj=StringIO(unhexlify(hexdata))).read()
outfile.close()

Mhm. Yep. I know some of these words.

Offline Bob_Meteors

  • Team Owner
  • Hero Member
  • *****
  • Posts: 606
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #17 on: May 09, 2017, 06:01:00 AM »
Checked my cache. Unfortunately I have from after it got messed up. I think 8 rounds is good enough. Let's just restart now.
Manager:
Brisbane Bandits 2107-2108
Melbourne Meteors 2108-

2108 WBA Champions
2142 WBA Champions

Offline Huckleberry

  • Administrator
  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #18 on: May 09, 2017, 07:10:30 AM »
Yes, I'm going to get the IBL draft caught up to where it was this evening, then we should be good to start simming again on Wednesday.

Offline Echo127

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 476
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #19 on: May 09, 2017, 07:35:11 AM »
Glad you guys were able to figure something out.

Getting antsy for this season. I spent big in FA for the first time ever and it feels good :-)

Offline Huckleberry

  • Administrator
  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #20 on: May 09, 2017, 08:32:41 PM »
Okay, I think I have the file formatted right now. About to try this.

Offline Huckleberry

  • Administrator
  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #21 on: May 10, 2017, 02:04:04 PM »
Something about this import and replacement is messing things up. So I'm going with Plan B.

Instead of overwriting the picks.txt file that tells the utilities who has been picked, I am going to take that list and make it the beginning of each manager's draft list. Then tell the draft to automatically use everyone's list.

Offline APMP

  • Team Owner
  • Sr. Member
  • *****
  • Posts: 324
  • See ball, hit ball, home run.
    • View Profile
Re: 2108 IBL Draft Recovery
« Reply #22 on: May 11, 2017, 10:04:48 AM »
For future reference (just in case), here's the entire IBL draft other than the last pick:

#   Team   Selection
1   Falcons   CF Zia Sirki
2   Foxes   SP Mehret Akinwunmi
3   Crushers   3B Iwo Cipinski
4   Monarchs   SP Theodore Tardieu
5   Generals   2B Yong-u Park
6   Fleur-de-Lis   SS An-shi Chin
7   Claymores   SP Jerome Lenoir
8   Merlions   SP Patrick Bouche
9   Cobras   CF Mabarak Mohmand
10   Meteors   CF Heinrich Friedjung
#   Round 2   
11   Falcons   CF Ibn El Sayed
12   Foxes   SP Albert Hirsch
13   Crushers   CF Kenkichi Adachi
14   Monarchs   SP Wamochia Ahmed
15   Generals   3B Tae-seon Ha
16   Fleur-de-Lis   LF Hyun-oo Park
17   Claymores   1B Labaan Juta
18   Merlions   SP Pyotr Vekker
19   Cobras   2B Dominic Underhay
20   Meteors   SP Yoshida Yamada
#   Round 3   
21   Falcons   2B Tiljad Kenyatta
22   Foxes   2B Karnamukha Jayantilal
23   Crushers   SP Xian Jiang
24   Monarchs   RF Xue-qin Fu
25   Generals   SP Workneh Pili
26   Fleur-de-Lis   RF Neill van de Pavert
27   Claymores   SP Terence Buggins
28   Merlions   SP Gidde van der Lack
29   Monarchs(from Cobras)   SP Kyu-pyeong Hong
30   Meteors   CF Sumitomo Okazaki
#   Round 4   
31   Falcons   SP Keraja Kagai
32   Foxes   SP Iemochi Taniguchi
33   Crushers   SP Shang-de Foong
34   Monarchs   C Sotatsu Ito
35   Generals   SP Rheinhardt Rueckl
36   Fleur-de-Lis   SP Tomiji Yamada
37   Claymores   SP Deniska Savvateev
38   Merlions   SS Liam MacGregor
39   Cobras   SP Idder Adebayo
40   Meteors   C Fakhruddin Hamadani
#   Round 5   
41   Falcons   RF Hwi-gon Kim
42   Foxes   CF Chia-liang Joe
43   Crushers   1B Stephen Hayne
44   Monarchs   SP John Tibbett
45   Generals   MR Baladhara Sambandam
46   Monarchs(from Fleur-de-Lis)   SP Tilahun Usiku
47   Claymores   SP Naim Fernandes
48   Merlions   SP Vid Gislinge
49   Cobras   SP Adityagarbha Jyothsna
50   Meteors   SS Kiryl Vagramenko
#   Round 6   
51   Falcons   SP Musamba Tayari
52   Foxes   SS Hughie Edkins
53   Crushers   SP Lucas MacGibbon
54   Monarchs   SP Corentin Jan
55   Generals   C Kazuhiro Yoshimura
56   Fleur-de-Lis   CF Adel Taysir
57   Claymores   3B Shirai Shimizu
58   Merlions   CF Diviraj Rustagi
59   Cobras   C Nobuhiko Hasegawa
60   Meteors   CF Thomas Hebron
#   Round 7   
61   Falcons   CF Nasih Husam al Din
62   Foxes   MR Masazumi Harada
63   Crushers   RF Kuan Song
64   Monarchs   SP Haile-Mariam Kibitok
65   Generals   SP Ramon Salinas
66   Fleur-de-Lis   RF Lee Penfold
67   Claymores   LF Carlos Davila
68   Merlions   CF Wing-chiu Hu
69   Cobras   CF Kadidou Obadele
70   Meteors   SS Guy Manselli
#   Round 8   
71   Falcons   SS Freddie Beattie
72   Foxes   SP Birju Kanwar
73   Crushers   CF Darma Sartika
74   Monarchs   SP Marc Grand
75   Generals   C Fredek Liprandi
76   Fleur-de-Lis   SP Abhayasinha Gowravaram
77   Claymores   1B Hughie Eden
78   Merlions   SS Xuan-ling Lee*
79   Cobras   SP Reginald Bucholtz
80   Meteors   SP Jin-guo Wang*
#   Round 9   
81   Falcons   SS Zhao-dao Lee*
82   Foxes   SP Balakunda Manjari
83   Crushers   SP Amitatman Sarin*
84   Monarchs   CF Ng Trieu
85   Generals   SP Dharmendra Paramartha
86   Fleur-de-Lis   CF Dmitr Azarenko*
87   Claymores   2B Shigeki Goto
88   Merlions   CF Nestore Massari*
89   Cobras   SP Tian-bai Kwan*
90   Meteors   CF Haru Tanaka*
#   Round 10   
91   Falcons   CF Onni Saarinen*
92   Foxes   CF Leolani Paselio
93   Crushers   2B Julien Villeneuve*
94   Monarchs   C Roger Maire*
95   Generals   SP Michel Lacombe*
96   Fleur-de-Lis   CF Gu Siew*
97   Claymores   2B Pavla Mishuev
98   Merlions   CF Christof Liebenthal*
99   Cobras   C Isoka Cetin*
100   Meteors   RF Paul Kreuter*
#   Round 11   
101   Falcons   SP Asvalarana Ramji*
102   Foxes   C Leonhart Aachen
103   Crushers   SS Kamasrama Tanu*
104   Monarchs   CF Hua Wang*
105   Generals   RF Gary Tranter*
106   Fleur-de-Lis   SS Christian Remond*
107   Claymores   SP Jaffar Chaudhry
108   Merlions   SP Abdul-Aziz Arif*
109   Cobras   SS Patrice Thiriet*
110   Meteors   CF Bhavin Ruchi*
#   Round 12   
111   Falcons   3B Mick Eveson*
112   Foxes   SP Ahamatu Bankole
113   Crushers   SP Ha-Neul Lee*
114   Monarchs   2B Dionigi Brandini*
115   Generals   SP Guy Bouvard*
116   Fleur-de-Lis   2B Husnan Mahmud Khel*
117   Claymores   SP Luigi Innocenti
118   Merlions   CF Khalig Mehri*
119   Cobras   2B Legesse Sokoine*
120   Meteors   SS Ilia Oduev*
#   Round 13   
121   Falcons   CF Chia-liang Xian*
122   Foxes   1B Toby Henshall
123   Crushers   SP Krishnamachari Pragalsingh*
124   Monarchs   SS Angus Cadenhead*
125   Generals   CF Joseph Zumwald*
126   Fleur-de-Lis   3B Gang Zhou*
127   Claymores   SP Gah-fat Chin
128   Merlions   C Aksata Bhatti*
129   Cobras   SP Lewnis Ouko*
130   Meteors   SP Jing Rui*
#   Round 14   
131   Falcons   CF Christopher Taglialatela*
132   Foxes   SP Nuh bin Khalil
133   Crushers   C Kojiro Sato*
134   Monarchs   3B Mukesh Vaisakhi*
135   Generals   C Qian-hua Chang*
136   Fleur-de-Lis   CF Su-gyung Kyon*
137   Claymores   SP Yugerten Suja
138   Merlions   3B Hen-to Liu*
139   Cobras   3B Rene Martin*
140   Meteors   C Kotisvara Jindal*
#   Round 15   
141   Falcons   3B Hai-feng Huang*
142   Foxes   SP Byung-kyu Cho
143   Crushers   2B Wolde Abol*
144   Monarchs   C Ravishankar Modi*
145   Generals   SS Christophe Chevalier*
146   Fleur-de-Lis   CF Gahiji Adelabu*
147   Claymores   SP Dodek Zblewski
148   Merlions   C Callum Jacobson*
149   Cobras   SP Yoritoki Matsuo
150   Meteors   SS Dai-lin Ming*
#   Round 16   
151   Falcons   SS Tzu-hsia Huie*
152   Foxes   SP Aki Yagi
153   Crushers   SS Ozen Ilahi*
154   Monarchs   SS Yoshifumi Hirayama*
155   Generals   3B Yoshiiku Mori*
156   Fleur-de-Lis   2B Agreni Bhatt*
157   Claymores   SP Iladhara Mahalingam
158   Merlions   C Krsniya Modi*
159   Cobras   3B Alfonso Ramos
160   Meteors   SP Fabrice Hue*
#   Round 17   
161   Falcons   1B Bhagana Nikunj*
162   Foxes   3B Oscar Godleman
163   Crushers   2B Qin-shu Song*
164   Monarchs   C Abid Hamadani*
165   Generals   C Hikaru Kiyomizu*
166   Fleur-de-Lis   2B Jae-ik Lee*
167   Claymores   SP Yusuf Yusaf Khel
168   Merlions   RF Angelo Zervas*
169   Cobras   SP Finlay Cattanach
170   Meteors   SP Jun-hyuk Sim*
#   Round 18   
171   Falcons   C Ansansa Sree*
172   Foxes   2B Roland Schonenberger*
173   Crushers   2B Habib Baig*
174   Monarchs   C Kapalabhrt Vallurupa*
175   Generals   SP Adem Mumcu*
176   Fleur-de-Lis   C Dionigi Boncompagni*
177   Claymores   SP Bhadradeha Chandran
178   Merlions   SP Jean Durand*
179   Cobras   3B Shadi Ridha
180   Meteors   SP Dong-hoon Park*
#   Round 19   
181   Falcons   SP Tian-yun Ling*
182   Foxes   SP Joseph Boyd*
183   Crushers   3B Javaid Abbasi*
184   Monarchs   C Wen-huan Jiang*
185   Generals   C Didhitimat Soni*
186   Fleur-de-Lis   SP Ketema Hazem*
187   Claymores   SP Zewde Khamisi
188   Merlions   C Wang Ge*
189   Cobras   SP Guan-pei Fang
190   Meteors   SP Gang-sheng Tsao*
#   Round 20   
191   Falcons   SP Awinagh Wakili*
192   Foxes   2B Kokaji Ligongo*
193   Crushers   2B Jung-ook Park*
194   Monarchs   SP Shaukat Kakar*
195   Generals   SP Hirokazu Sakei*
196   Fleur-de-Lis   SP Jumah Naji*
197   Claymores   SP Hung-k'uei Dan
198   Merlions   C Yu-shu Que*
199   Cobras   SP Jin-guo Wen
200   Meteors   Pick due by Thursday at 12:03 pm

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal