MyTetra Share
Делитесь знаниями!
О, смотри-ка какое хорошее место. Дайте два!
my commands
07.09.2015
10:51
Раздел: root - Nout

Download google book pages


while read imgUrl; do curl -H 'Host: books.google.by' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0' -H 'Accept: image/png,image/*;q=0.8,*/*;q=0.5' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Referer: https://books.google.by/books?id=01PoBgAAQBAJ&pg=PA293&lpg=PA293&dq=awk+getopt&source=bl&ots=A-0s6zquPc&sig=QwNwn7ms4h3iRhZ_gZej6i0hcD4&hl=en&sa=X&ved=0CEcQ6AEwCGoVChMIufP8vKHdxwIVKErbCh1lxQBB' -H 'Cookie: PREF=ID=1111111111111111:FF=0:LD=ru:TM=1423057401:LM=1434707070:S=27OBA5zqTc2UvXe4; NID=70=tT8cPHHwurnxn4uHEqii45C5Aewvu8QS-8q3fjS_9J7589SwnXK_p8FMdvPGJRgxzKSYoQIyuNFMh2LUWJuJM4pdyutVOxe1DDODxjrePgXvQaxnX4BDDkp7oAz2l3rgfdaZDS2JAd8fNAxB94bAoXzeQq5iDiJmQ_mi6R9HiWipbJWH5Y5s0SWwTgZx7gvtAsC3sVY7HXJ59efB8tCBmd6bzqHZR6LH3f2i3OaMiy_nWjD3BLKMQbc; __utma=262177439.580372499.1424333013.1424417396.1441606873.6; OGP=-5061451:; __utmb=262177439.3.10.1441606873; __utmc=262177439; __utmz=262177439.1441606873.6.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -vL `echo -n $imgUrl` -o "$(awk -F '=|&' '{print $8}' <<< "$imgUrl").png"; done < <(< books.google.by.harp awk -F ' |\"' '/"url":/{n=NF-1; if ($n~"https:\\/\\/books.google.by\\/books\\?id=01PoBgAAQBAJ.+pg=PA.+&img=1") print $n}')

← Содержание ...
 
MyTetra Share v.0.35
Яндекс индекс цитирования