{"id":204,"date":"2004-10-02T23:33:14","date_gmt":"2004-10-02T21:33:14","guid":{"rendered":"http:\/\/www.marblestation.com\/blog\/?p=204"},"modified":"2012-04-26T18:54:55","modified_gmt":"2012-04-26T16:54:55","slug":"sencillo-script-para-descargar-imagenes","status":"publish","type":"post","link":"https:\/\/www.marblestation.com\/?p=204","title":{"rendered":"Sencillo script para descargar imagenes"},"content":{"rendered":"<p>Queria bajarme los screenshots de la instalaci\u00f3n de Ubuntu que hay en una web y en lugar de ir una por una con el navegador, me he fijado en la URL de las imagenes y he visto que eran asi:<\/p>\n<p><a href=\"http:\/\/www.linuxbeta.com\/slideshows\/103\/1.gif\">http:\/\/www.linuxbeta.com\/slideshows\/103\/1.gif<\/a><br \/>\n<a href=\"http:\/\/www.linuxbeta.com\/slideshows\/103\/2.gif\">http:\/\/www.linuxbeta.com\/slideshows\/103\/2.gif<\/a><br \/>\n&#8230;<\/p>\n<p>Es decir, solo habia un n\u00famero que se incrementaba&#8230; por tanto podria hacer uso de la potencia de los scripts en linux para hacer uno r\u00e1pido que me descargase las 80 im\u00e1genes y me ahorrase bajarlas manualmente. Aqu\u00ed esta el script:<\/p>\n<pre>\r\n#!\/bin\/bash\r\ni=0\r\nwhile [ $i -lt 80 ]; do\r\n    i=$[$i + 1];\r\n    wget -c http:\/\/www.linuxbeta.com\/slideshows\/103\/$i.gif\r\ndone\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Queria bajarme los screenshots de la instalaci\u00f3n de Ubuntu que hay en una web y en lugar de ir una por una con el navegador, me he fijado en la URL de las imagenes y he visto que eran asi: http:\/\/www.linuxbeta.com\/slideshows\/103\/1.gif http:\/\/www.linuxbeta.com\/slideshows\/103\/2.gif &#8230; Es decir, solo habia un n\u00famero que se incrementaba&#8230; por tanto podria &hellip; <a href=\"https:\/\/www.marblestation.com\/?p=204\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Sencillo script para descargar imagenes<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-204","post","type-post","status-publish","format-standard","hentry","category-espanyol","category-tecnologia"],"_links":{"self":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=204"}],"version-history":[{"count":1,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":1716,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/204\/revisions\/1716"}],"wp:attachment":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}