{"id":233,"date":"2016-10-11T22:00:14","date_gmt":"2016-10-11T22:00:14","guid":{"rendered":"http:\/\/wizardofbots.com\/network\/?p=233"},"modified":"2016-10-11T22:31:47","modified_gmt":"2016-10-11T22:31:47","slug":"how-to-mass-download-images-from-multiple-pages-of-tumblr-profile","status":"publish","type":"post","link":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/","title":{"rendered":"How to mass download images from multiple pages of Tumblr profile"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full\" src=\"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69\" alt=\"\" width=\"200\" height=\"300\" \/>Hey whatsup fellas. After opening the courses and scripts sections im updating this blog with something new and different. How many times you wanted to make a private gallery from many different tumblr profiles to watch offline? Maybe zero, but with this knowledge you will be able to do it with just 1 line of code!<\/p>\n<p>So what it is going to do, is using curl to mass scrape and paginate a tumblr profile, so you will get a list of URLs that will be processed with a while loop inside the curl, and then saving it on the folder you are running this command. But first&#8230;<\/p>\n<p>You might need to install cURL in your server, dont worry is easy:<\/p>\n<blockquote>\n<pre><code>sudo apt-get install curl<\/code><\/pre>\n<\/blockquote>\n<p>And if this doesnt works, try doing an apt-get update and then:<\/p>\n<blockquote>\n<pre><code>sudo apt-get install libcurl3 php5-curl<\/code><\/pre>\n<\/blockquote>\n<p>Then just like that,\u00a0type: curl -h \u00a0to see the help, if it display now you have it installed.<\/p>\n<p>This is the main command you have to type inside the folder where you want to put all the downloaded images:<\/p>\n<p><span class=\"lang:default decode:true crayon-inline\">curl http:\/\/concept-art.tumblr.com\/page\/[1-7] | grep -o &#8216;src=&#8221;[^&#8221;]*.[png-jpg]&#8221;&#8216; | cut -d\\&#8221; -f2 | while read l; do curl &#8220;$l&#8221; -o &#8220;${l##*\/}&#8221;; done<\/span><\/p>\n<p>Lets explain the code a little bit: the curl command is requesting the URL\u00a0http:\/\/concept-art.tumblr.com\/page\/1 starting with page 1, then when we put in [ ] and separate a bigger number at the right with a dash &#8211; , we will be able to request multiple pages doing a pagination. Then when you add <strong>|<\/strong> means that it is separating the commands to run after, so\u00a0<strong>grep<\/strong> is going to do a search for\u00a0<strong>src attributes<\/strong> and only for those with termination on\u00a0<strong>[png-jpg]\u00a0<\/strong>or you can add more doing\u00a0<strong>-gif<\/strong> inside the [ ]. Then the\u00a0<strong>cut\u00a0<\/strong> command will collect the names, but what it is going to make download eveything will be the while loop, doing a curl on the found urls for the png or jpg images.<\/p>\n<p>So make sure to add the while loop to the end for downloading, if you only want to see the images grabbed using the following command:<\/p>\n<p><span class=\"lang:default decode:true crayon-inline \">curl http:\/\/concept-art.tumblr.com\/page\/[1-7] | grep -o &#8216;src=&#8221;[^&#8221;]*.[png-jpg]&#8221;&#8216; | cut -d\\&#8221; -f2<\/span><\/p>\n<p>Here is a video that I recorded in order to show you how to do it:<\/p>\n<p><iframe loading=\"lazy\" width=\"720\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/FA2p0ACmP8M?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey whatsup fellas. After opening the courses and scripts sections im updating this blog with something new and different. How many times you wanted to make a private gallery from many different tumblr profiles to watch offline? Maybe zero, but with this knowledge you will be able to do it with just 1 line of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[6],"tags":[107,108,110,109],"class_list":["post-233","post","type-post","status-publish","format-standard","hentry","category-tutorials","tag-curl","tag-download","tag-mass-download","tag-tumblr"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to mass download images from multiple pages of Tumblr profile - Wizard Of Bots<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to mass download images from multiple pages of Tumblr profile - Wizard Of Bots\" \/>\n<meta property=\"og:description\" content=\"Hey whatsup fellas. After opening the courses and scripts sections im updating this blog with something new and different. How many times you wanted to make a private gallery from many different tumblr profiles to watch offline? Maybe zero, but with this knowledge you will be able to do it with just 1 line of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/\" \/>\n<meta property=\"og:site_name\" content=\"Wizard Of Bots\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-11T22:00:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-10-11T22:31:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69\" \/>\n<meta name=\"author\" content=\"wizardofbots\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wizardofbots\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/\",\"url\":\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/\",\"name\":\"How to mass download images from multiple pages of Tumblr profile - Wizard Of Bots\",\"isPartOf\":{\"@id\":\"https:\/\/wizardofbots.com\/network\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69\",\"datePublished\":\"2016-10-11T22:00:14+00:00\",\"dateModified\":\"2016-10-11T22:31:47+00:00\",\"author\":{\"@id\":\"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/31f9e486da1c11791d94a861854a2a9f\"},\"breadcrumb\":{\"@id\":\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#primaryimage\",\"url\":\"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69\",\"contentUrl\":\"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wizardofbots.com\/network\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to mass download images from multiple pages of Tumblr profile\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wizardofbots.com\/network\/#website\",\"url\":\"https:\/\/wizardofbots.com\/network\/\",\"name\":\"Wizard Of Bots\",\"description\":\"Botting and AI community\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wizardofbots.com\/network\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/31f9e486da1c11791d94a861854a2a9f\",\"name\":\"wizardofbots\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/584eebc303f64610559ab9f305f6928d?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/584eebc303f64610559ab9f305f6928d?s=96&d=mm&r=g\",\"caption\":\"wizardofbots\"},\"url\":\"http:\/\/wizardofbots.com\/network\/author\/wizardofbots\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to mass download images from multiple pages of Tumblr profile - Wizard Of Bots","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/","og_locale":"en_US","og_type":"article","og_title":"How to mass download images from multiple pages of Tumblr profile - Wizard Of Bots","og_description":"Hey whatsup fellas. After opening the courses and scripts sections im updating this blog with something new and different. How many times you wanted to make a private gallery from many different tumblr profiles to watch offline? Maybe zero, but with this knowledge you will be able to do it with just 1 line of [&hellip;]","og_url":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/","og_site_name":"Wizard Of Bots","article_published_time":"2016-10-11T22:00:14+00:00","article_modified_time":"2016-10-11T22:31:47+00:00","og_image":[{"url":"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69"}],"author":"wizardofbots","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wizardofbots","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/","url":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/","name":"How to mass download images from multiple pages of Tumblr profile - Wizard Of Bots","isPartOf":{"@id":"https:\/\/wizardofbots.com\/network\/#website"},"primaryImageOfPage":{"@id":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#primaryimage"},"image":{"@id":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#primaryimage"},"thumbnailUrl":"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69","datePublished":"2016-10-11T22:00:14+00:00","dateModified":"2016-10-11T22:31:47+00:00","author":{"@id":"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/31f9e486da1c11791d94a861854a2a9f"},"breadcrumb":{"@id":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#primaryimage","url":"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69","contentUrl":"https:\/\/media0.giphy.com\/media\/E241gLRHRRiYE\/200w.gif#69"},{"@type":"BreadcrumbList","@id":"http:\/\/wizardofbots.com\/network\/how-to-mass-download-images-from-multiple-pages-of-tumblr-profile\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wizardofbots.com\/network\/"},{"@type":"ListItem","position":2,"name":"How to mass download images from multiple pages of Tumblr profile"}]},{"@type":"WebSite","@id":"https:\/\/wizardofbots.com\/network\/#website","url":"https:\/\/wizardofbots.com\/network\/","name":"Wizard Of Bots","description":"Botting and AI community","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wizardofbots.com\/network\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/31f9e486da1c11791d94a861854a2a9f","name":"wizardofbots","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/584eebc303f64610559ab9f305f6928d?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/584eebc303f64610559ab9f305f6928d?s=96&d=mm&r=g","caption":"wizardofbots"},"url":"http:\/\/wizardofbots.com\/network\/author\/wizardofbots\/"}]}},"_links":{"self":[{"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/posts\/233"}],"collection":[{"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":10,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":243,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/posts\/233\/revisions\/243"}],"wp:attachment":[{"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}