Skip to content

Commit

Permalink
+ fotki.yandex.ru album fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
l29ah committed Apr 1, 2012
1 parent c36c76c commit dc88bf4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions yandex.ru/fotki
@@ -0,0 +1,7 @@
#!/bin/bash
# Usage: $0 <url of the album to download>
for u in $(for pu in "$1" `curl -s "$1" | grep b-pager__current | tr \> '\n' | sed -ne 's#.*href="\([^"]*\)".*#\1#p'`; do
curl -s "$pu" | sed -ne 's#.*class="photo" href="\([^"]*view/[0-9][^"]*\)".*#\1#p'
done); do
wget -c "`curl -s "http://fotki.yandex.ru$u" | sed -ne 's#.*href="\([^"]*_orig\)">.*#\1#p'`"
done

0 comments on commit dc88bf4

Please sign in to comment.