{"id":119,"date":"2020-01-28T20:18:56","date_gmt":"2020-01-28T20:18:56","guid":{"rendered":"http:\/\/eng.sbfactory.ru\/?p=119"},"modified":"2020-01-29T18:50:40","modified_gmt":"2020-01-29T18:50:40","slug":"how-to-scrape-image-or-any-other-files-from-a-website","status":"publish","type":"post","link":"https:\/\/eng.sbfactory.ru\/?p=119","title":{"rendered":"How to scrape images or any other files from a website"},"content":{"rendered":"<p><!--more--><iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/XthOAihpM8A\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><br \/>\n<BR><br \/>\nTo download an image you should put an image URL to &lt;DOWNLOADFILE> output template macro<\/p>\n<pre lang=\"HTML\" Line=\"1\"><DOWNLOADFILE>URL<\/DOWNLOADFILE>\r\n<DOWNLOADFILE>http:\/\/***.com\/images\/image.jpg<\/DOWNLOADFILE><\/pre>\n<p><BR><br \/>\nTo obtain a single image URL <strong><a href=\"http:\/\/eng.sbfactory.ru\/?p=67\" target=\"_blank\" rel=\"noopener noreferrer\">use a scrape section<\/a><\/strong> and put a scrape section macro to &lt;DOWNLOADFILE> in output template<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-35-31.png\" alt=\"Content Downloader\" width=\"922\" height=\"339\" class=\"alignnone size-full wp-image-135\" srcset=\"https:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-35-31.png 922w, https:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-35-31-300x110.png 300w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><br \/>\n<BR><br \/>\nTo obtain several image URLs <strong><a href=\"http:\/\/eng.sbfactory.ru\/?p=120\" target=\"_blank\" rel=\"noopener noreferrer\">use iterative scrape sections<\/a><\/strong><\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-39-13.png\" alt=\"Content Downloader\" width=\"802\" height=\"590\" class=\"alignnone size-full wp-image-136\" srcset=\"https:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-39-13.png 802w, https:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-39-13-300x220.png 300w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><br \/>\n<BR><br \/>\nTo make scraping preview press ctrl+f2<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-45-42.png\" alt=\"Content Downloader\" width=\"925\" height=\"784\" class=\"alignnone size-full wp-image-137\" srcset=\"https:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-45-42.png 925w, https:\/\/eng.sbfactory.ru\/wp-content\/uploads\/2020\/01\/2020-01-28_23-45-42-300x254.png 300w\" sizes=\"(max-width: 925px) 100vw, 925px\" \/><br \/>\n<BR><br \/>\n<span id=\"post-ratings-119\" class=\"post-ratings\" data-nonce=\"a988d69add\"><img id=\"rating_119_1\" src=\"https:\/\/eng.sbfactory.ru\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"\" title=\"\" onmouseover=\"current_rating(119, 1, '');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_119_2\" src=\"https:\/\/eng.sbfactory.ru\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"\" title=\"\" onmouseover=\"current_rating(119, 2, '');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_119_3\" src=\"https:\/\/eng.sbfactory.ru\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"\" title=\"\" onmouseover=\"current_rating(119, 3, '');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_119_4\" src=\"https:\/\/eng.sbfactory.ru\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"\" title=\"\" onmouseover=\"current_rating(119, 4, '');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_119_5\" src=\"https:\/\/eng.sbfactory.ru\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"\" title=\"\" onmouseover=\"current_rating(119, 5, '');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/> (No Ratings Yet)<br \/><span class=\"post-ratings-text\" id=\"ratings_119_text\"><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[14,17,16,15],"_links":{"self":[{"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=\/wp\/v2\/posts\/119"}],"collection":[{"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":12,"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions\/188"}],"wp:attachment":[{"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eng.sbfactory.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}