JSFiddle - React, Tailwind, and code Playground
by cryptoquick
HTML
<script src='https://raw.github.com/padolsey/jQuery-Plugins/master/cross-domain-ajax/jquery.xdomainajax.js'></script>
<div id="scrapeGallery"></div>
JavaScript
$(document).ready(function () {
var baseUrl = "http://www.zales.com/product/index.jsp?productId=2569036";
$.ajax({
url: baseUrl,
success: function (data) {
var $foop = $('<form>' + data.responseText + '</form>');
$.each($foop.find('img[src]'), function(i, el) {
var src = $(el).attr("src");
if (src.indexOf('http://') == -1) {
src = baseUrl + src;
}
var img = new Image();
img.src = src;
img.onload = function() {
if (this.width > 250 && this.height > 250) {
$(this).appendTo($('#scrapeGallery'));
}
}
});
},
dataType: '',
type: 'get'
});
});