Skip to content

Commit

Permalink
+ google.com image search tool
Browse files Browse the repository at this point in the history
  • Loading branch information
l29ah committed Nov 21, 2011
1 parent 82ff0f6 commit 7244c4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions google.com/gimages
@@ -0,0 +1,8 @@
#!/bin/bash
r="`urlencode <<< "$1"`"
for (( i=0; i<${2:-4}; i=$i+1 )); do
curl -sLA "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 10.00" "http://www.google.com/search?hl=en&tbm=isch&safe=off&q=$r&sourceid=opera&ie=utf-8&oe=utf-8&start=$((i*20))"
done |
tr \> \\n |
sed -n -e 's/.*imgurl=\(.*\)&amp;imgref.*/\1/p' |
htmldecode

0 comments on commit 7244c4a

Please sign in to comment.