Created
September 21, 2012 05:20
-
-
Save shoorick/3759854 to your computer and use it in GitHub Desktop.
Get statistics for screen resolution and sum it by width
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget 'https://www.openstat.ru/rest/v0.3/ct:openstat:trends/display/columns/20120820-20120920?column=0%0Dvisitors_sum_average&column=0%0Dvisitors_sum_average_verticalpercent&column=0%0Dsessions_sum&column=0%0Dpageviews_sum&primary_column=0&view_id=1810&format=tsv' -O - \ | |
| perl -nlaF'\t' -MList::Util=max \ | |
-e '$F[0]=~s/x.*//||next;$sum{$F[0]}+=$F[4];END{for$k(0..max(keys%sum)){print"$k\t$sum{$k}"}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Быстрый подсчёт сумм ширины экранов посетителей сайтов, использующих статистику openstat.ru (бывший SpyLog)