Guys/Galls

I wrote this script which need some more work (validating entry,
etc...) but it works, it basically produce bbcode from the url of an
album, here is the script:

#!/bin/bash
SIZE=400

echo $1 | \
curl -s `awk --field-separator=/ '{print "http://picasaweb.google.com/
data/feed/api/user/"$4"/album/"$5}'` |\
sed -e 's/\"/\ /g' -e s/\'/\ /g |\
tr ' ' '\n' |\
grep s72 |\
awk '{print "[url='$1'][img]"$0"[/img][/url]\n"}' |\
sed s/s72/s$SIZE/g


It takes as parameter the URL of the blog.

If you want to read more, you can find information here:
http://www.linuxevolution.org/archives/2010/03/19/from_picasaweb_albums_to_bbcode/index.html
For spanish speaking people, you can find more information here:
http://www.orvtech.com//archives/2010/03/17/de_picasa_a_bbcode/index.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to