View Single Post
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#64
Originally Posted by hschmitt View Post
I don't know, but you probably know these lists, where you can browse through
http://maemo.org/packages/repository...el_free_armel/
http://maemo.org/packages/repository...on-free_armel/
These lists have some problems. I can't read page after ~80, so I can view only packages [a-m], wgetting gives internal server error.
But this gave me an idea.

Code:
#List of every package in extras-devel:
wget http://repository.maemo.org/extras-devel/dists/fremantle/free/binary-armel/Packages.bz2
bunzip2 Packages.bz2
rm package_list.txt
cat Packages | grep --color=no Package\: | sed s'/Package: //'  | grep -v " "  >> package_list.txt
sort package_list.txt | uniq > package_names.txt
-> 6328 packages.

And then wgetting every page:
Code:
for n in `cat package_names.txt`
do
    wget "http://maemo.org/packages/view/$n/" -O "$n"
    test "$(grep 'Aapo Rantalainen' $n )" != '' && (echo $n >> aapo.txt )
done
[Edit]
6 hours and 276MB later... -> 335 packages found.
[/Edit]

Last edited by AapoRantalainen; 2013-05-27 at 11:53.
 

The Following 4 Users Say Thank You to AapoRantalainen For This Useful Post: