Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: [1]

Author Topic: goko logs  (Read 2792 times)

0 Members and 1 Guest are viewing this topic.

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
goko logs
« on: April 09, 2013, 11:29:11 am »
+2

Does anybody has (more or less) completely downloaded the gamelogs from goko, at least the last month or so and want to forward them to me in zipped from?  I want to do some statistics, but it takes ages to scrape the unzipped logs from their server...
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: goko logs
« Reply #1 on: April 10, 2013, 08:25:51 am »
0

Alternatively, is there a faster way than piping all the filenames into wget?
I get something like 50kb/s download with this, getting 800MB files is no fun that way.
Logged

MrHaas

  • Herbalist
  • **
  • Offline Offline
  • Posts: 5
  • Respect: +4
    • View Profile
Re: goko logs
« Reply #2 on: April 11, 2013, 05:22:18 am »
+1

I made a script which downloaded them in multiple threads which did about 150 logs/s. Didn't finish b/c my VPS ran out of space. This week they archived the old dates in zipped tarballs and I started to download them, but when I reached 18 feb. (about 15 minutes into the process) they removed the old files and now only the logs from april are there as you can see. So I'm missing half of february and march :(.
Logged

ragingduckd

  • Board Moderator
  • *
  • Offline Offline
  • Posts: 1059
  • Respect: +3527
    • View Profile
Re: goko logs
« Reply #3 on: May 12, 2013, 03:56:10 pm »
0

I made a script which downloaded them in multiple threads which did about 150 logs/s.

How did you manage this?  I can't seem to do better than 10/s.
Logged
Salvager Extension | Isotropish Leaderboard | Game Data | Log Search & other toys | Salvager Bug Reports

Salvager not working for me at all today. ... Please help! I can't go back to playing without it like an animal!

ragingduckd

  • Board Moderator
  • *
  • Offline Offline
  • Posts: 1059
  • Respect: +3527
    • View Profile
Re: goko logs
« Reply #4 on: May 13, 2013, 12:16:02 pm »
+5

I zipped up the currently-available Goko log files and put them here: http://www.sendspace.com/folder/u5w9ig

MrHaas, can you send me the logs from February and before?
Logged
Salvager Extension | Isotropish Leaderboard | Game Data | Log Search & other toys | Salvager Bug Reports

Salvager not working for me at all today. ... Please help! I can't go back to playing without it like an animal!

nutki

  • Scout
  • ****
  • Offline Offline
  • Posts: 40
  • Respect: +195
    • View Profile
Re: goko logs
« Reply #5 on: May 14, 2013, 06:13:50 am »
+5

Here is a script to grab the logs quite fast. With 20 threads I got to about 200logs/s. The logs will be saved gzipped, so you have to unpack them or (to save space) use 'zcat' when needed.
Code: [Select]
#!/bin/bash
BASE=http://dominionlogs.goko.com/20130513/
THREADS=20
wget --header='Accept-Encoding: gzip' $BASE -O- |
zcat |
perl -lne 'print "$1" if /href="(.*?txt)"/' |
split -l 100 - _index.
ls _index.* | xargs -n 1 -P $THREADS wget --base=$BASE --header='Accept-Encoding: gzip' -i
rm _index.*
Logged
Want a better Goko experience?
Get Firefox, Grease monkey and my script.

Watno

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2745
  • Shuffle iT Username: Watno
  • Respect: +2983
    • View Profile
Re: goko logs
« Reply #6 on: May 26, 2013, 04:14:59 pm »
+3

All the logs from before April are available in archives at http://dominionlogs.goko.com/
Logged

yed

  • Minion
  • *****
  • Offline Offline
  • Posts: 620
  • Shuffle iT Username: yed
  • Respect: +571
    • View Profile
Logged
Pages: [1]
 

Page created in 0.048 seconds with 20 queries.