git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
browser: rename usage metadata keys
[sheet.git]
/
tools
/
convert-stats-wikimedia.pl
diff --git
a/tools/convert-stats-wikimedia.pl
b/tools/convert-stats-wikimedia.pl
index 5c6a8bf32770c50977104cf2a53af3157e1d38ae..382fe0c122cbde51ecad58a06e3baea19d309b20 100755
(executable)
--- a/
tools/convert-stats-wikimedia.pl
+++ b/
tools/convert-stats-wikimedia.pl
@@
-4,8
+4,8
@@
our %count;
our $mobile;
if (m{<td class=hl>} .. m{</?td>}) {
our $mobile;
if (m{<td class=hl>} .. m{</?td>}) {
- $count{-
url
} = 'http://stats.wikimedia.org/archive/squid_reports/';
- $count{-
source
} = 'Wikimedia';
+ $count{-
source
} = 'http://stats.wikimedia.org/archive/squid_reports/';
+ $count{-
title
} = 'Wikimedia';
$count{-date} = $1 if m{ period: (?:\d+ )?(\w+ \d+) };
next;
}
$count{-date} = $1 if m{ period: (?:\d+ )?(\w+ \d+) };
next;
}