You are not logged in.

#1 2009-04-11 09:28:44

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

amount of youtube videos of each Linux distro

Statistics.. often useless but who doesn't like them? smile
In http://bbs.archlinux.org/viewtopic.php?id=69258 I noticed that there are quite some videos of Arch on youtube, so I started wondering how many videos each distro would have.
So I wrote this little script

#!/bin/bash
distros=`wget -q http://distrowatch.com/ -O '-' | grep -A 1 "Select Distribution</option>" | tail -n 1 | sed 's/<[^>]*>/ /g'`
for distro in $distros
do
        # lowercase
        distro=`tr "[:upper:]" "[:lower:]" <<< $distro`
        # if distro does not contain 'linux' or 'bsd', append ' linux'.
        [[ $distro =~ linux ]] || [[ $distro =~ bsd ]] || distro="$distro linux"
        echo -n ${distro/ /+}' '
        results=`wget -q "http://www.youtube.com/results?search_type=&search_query=${distro/ /+}&aq=f" -O - | grep 'of about <strong>' | sed 's/<[^>]*>//g' | awk '{print $NF}'`
        [ -z "$results" ] && echo 0
        [ -n "$results" ] && echo $results
done

Note that the script is not perfect.  it will append 'linux' to distro's like m0n0wall (which is bsd) and solaris.  and if the distro contains of multiple words it may become split up..
Also , 'linux' without anything else is in there.  there are a few bogus ones in it, but it gives an idea.

Arch comes at around place 45 with 186 videos.  Here is the top 100 ( <script> | sort -r -n -k 2 | uniq | head -n 100 | nl)

1 linux 39,700
     2    ubuntu+linux 19,100
     3    source+linux 3,660
     4    xp+linux 3,470
     5    os+linux 3,300
     6    musix+linux 2,460
     7    server+linux 2,170
     8    gnulinex+linux 1,890
     9    easy+linux 1,420
    10    debian+linux 1,160
    11    red+linux 1,110
    12    fedora+linux 939
    13    easys+linux 752
    14    max+linux 734
    15    small+linux 708
    16    vine+linux 698
    17    studio+linux 655
    18    64+linux 624
    19    box+linux 598
    20    core+linux 597
    21    ultimate+linux 579
    22    kubuntu+linux 557
    23    dog+linux 544
    24    stux+linux 535
    25    mandriva+linux 508
    26    yes+linux 490
    27    rocks+linux 446
    28    hat+linux 440
    29    big+linux 436
    30    opensuse+linux 398
    31    gentoo+linux 376
    32    rock+linux 360
    33    freebsd 359
    34    livecd+linux 317
    35    novell+linux 297
    36    mint+linux 295
    37    nature's+linux 269
    38    grml+linux 265
    39    yellow+linux 225
    40    userful+linux 221
    41    xubuntu+linux 199
    42    rays+linux 196
    43    puppy+linux 195
    44    solaris+linux 189
    45    arch+linux 186
    46    simplis+linux 182
    47    gos+linux 177
    48    slackware+linux 174
    49    magic+linux 168
    50    oracle+linux 158
    51    greenie+linux 147
    52    damn+linux 146
    53    router+linux 145
    54    sabayon+linux 119
    55    sam+linux 112
    56    pclinuxos 111
    57    molinux 108
    58    olpc+linux 102
    59    cluster+linux 98
    60    tiny+linux 97
    61    centos+linux 96
    62    xandros+linux 95
    63    alt+linux 95
    64    linpus+linux 90
    65    flag+linux 87
    66    openbsd 85
    67    backtrack+linux 85
    68    knoppix+linux 82
    69    mepis+linux 80
    70    netbsd 79
    71    bu+linux 78
    72    pardus+linux 69
    73    shift+linux 60
    74    vector+linux 50
    75    moonos+linux 50
    76    lfs+linux 49
    77    boss+linux 46
    78    miros+linux 45
    79    trixbox+linux 42
    80    nova+linux 42
    81    guadalinex+linux 42
    82    calculate+linux 42
    83    elive+linux 40
    84    pioneer+linux 39
    85    pc-bsd 38
    86    gparted+linux 35
    87    slax+linux 33
    88    pie+linux 31
    89    opensolaris+linux 31
    90    absolute+linux 30
    91    2x+linux 29
    92    dreamlinux 28
    93    ear+linux 27
    94    scientific+linux 26
    95    devil+linux 26
    96    zenwalk+linux 23
    97    skolelinux 23
    98    miracle+linux 23
    99    moblin+linux 20
   100    cdlinux 20

Last edited by Dieter@be (2009-04-11 09:34:09)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB