Friday, May 3, 2013

Amazon ASIN Collector / Grabber

If you are Amazon's Affiliate, ASIN (Amazon Standard Identification Number) is as important as make money itself. You can build a store, or find a product by ASIN.

Find bulk ASIN is easy. This script show you how to create Amazon ASIN collector. (this script only works in search page). Create a new bookmark in your browser, paste below script as URL or just paste this script to your address bar while you currently in amazon search result (after searching some product with filtered result):

javascript:(function(){ /* inject jquery into amazon page */ var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);
GM_JQ.onload = function(){ /* to do on script loaded */
$('body').append('<div class="asin_grabber"></div>'); /* create div of asin grabber*/
$('.asin_grabber').css('position', 'fixed');
$('.asin_grabber').css('right', '10px');
$('.asin_grabber').css('top', '10px');
$('.asin_grabber').css('width', '250px');
$('.asin_grabber').css('background-color', '#fff');
$('.asin_grabber').css('border', '1px solid #000');
$('.asin_grabber').css('z-index', '10000');
$('.asin_grabber').append('<div class="ttle" style="text-align:center;font-size:20px;font-family:tahoma">ASIN Grabber</div>');
$('.asin_grabber').append('<div class="mn" style="padding:10px;"><textarea rows="18" cols="10" style="width:95%;" id="grabber_textarea"></textarea></div>');
$('.asin_grabber').append('<div style="padding:10px;padding-top:5px"><button id="collect_asin">Collect ASIN</button> <button id="clear_asin">Clear</button></div>');
$('.asin_grabber').append('<div style="padding:10px;padding-top:5px"><button id="next_page_asin">Next Page</button></div>');
$('#collect_asin').off('click').on('click', function(){ /* create collect asin function */
$('h3.newaps').each(function(v, i){
var asin = $(this).children('a').attr('href');
asin = asin.match(/\/dp\/(.*?)\//);
$('#grabber_textarea').val($('#grabber_textarea').val()+asin[1]+'\n');
});
});
$('#clear_asin').off('click').on('click', function(){  /* create clear text area */
$('#grabber_textarea').val('');
});
$('#next_page_asin').on('click', function(){
$('a#pagnNextLink > span#pagnNextString').trigger('click');
});
}})();void(0);

You can modify that script. It's just basic script. I hope it will help you to collect a hundred of ASIN in amazon search page. (tips: find products that filtered, to be more works). If that script doesn't work, just delete comment statement ( statement that start with /* and end with */ )

1 comment:

  1. thanks for sharing. I usually using asincollector.com to get amazon ASIN. support 10 amazon county

    ReplyDelete