Linux Tips and Tricks

Linux Tips and Tricks

Download Facebook Images (friends & pages) through linux commands

February1

1)  Goto facebook photos page.

2) save the html page and save it as tips.html

Sample page : Download from here (Right click and choose “Save Link As” )

3) fire the below command.

1
2
3
sed -e "s/\.jpg\"/\.jpg\n/g" fb.html  \
| awk -F\" '/data-starred-src.*https/{print $NF}' \
| while read a; do curl -s -O "$a"; done

one-liner

1
sed -e "s/\.jpg\"/\.jpg\n/g" fb.html  | awk -F\" '/data-starred-src.*https/{print $NF}' | while read a; do curl -s -O "$a"; done
posted under Uncategorized | No Comments »

Recent Comments

    Categories