จากกระทู้หา node amazon นะครับ ->
http://www.thaiseoboard.com/index.php/topic,98827 
และจากกระทู้เก็บ list url จาก google นะครับ ->
http://www.thaiseoboard.com/index.php/topic,98160 
ผมเขียน script greasemonkey ไว้ พอดีเลยขอเอามา post ลงไว้นะครับ
ก่อนอื่นต้องใช้ firefox ครับ และลง plugin GreaseMonkey ของ firefox ที่นี่ ->
https://addons.mozilla.org/en-US/firefox/addon/748 
restart firefox พร้อมใช้แล้วสร้าง script ตามนี้
คลิกขวาที่ icon ลิงตรงมุมล่างขวาเลยครับแล้วเลือก
> New User Script... จะขึ้น popup ขึ้นมา
ตรงช่อง Name ใส่ว่า amazon_node_asin (หรือชื่ออื่นก็ได้แล้วแต่)
ตรงช่อง Includes (One per line) ใส่ว่า
แล้วกด ok มันจะเปิด editer ให้ครับพร้อมมี code ส่วนหัวให้ด้วย ให้ก็อป code ต่อไปนี้ไปทับได้เลยครับ ตามนี้
// ==UserScript==
// @name New_Amazon_ASIN_NODE
// @namespace http://www.thaiseoboard.com/
// @description Show ASIN, NODE from Amazon
// @include http://www.amazon.*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js
// @icon http://www.thaiseoboard.com/Themes/thaiseoboard_rev2009/images/on.gif
// ==/UserScript==
(function() {
// short link node http://www.amazon.com/b/?node=3733851&page=1
// short link asin http://www.amazon.com/dp/B000BK9BXG/?tag=abc-20
function substrc(str, from, to){
var start, end;
start = str.indexOf(from);
if(start < 0) start = 0;
else start = start + from.length;
end = str.lastIndexOf(to);
if(end < 0) end = str.length;
return str.substring(start, end);
}
function substrcll(str, from, to){
var start, end;
start = str.lastIndexOf(from);
if(start < 0) start = 0;
else start = start + from.length;
end = str.lastIndexOf(to);
if(end < 0) end = str.length;
return str.substring(start, end);
}
function amazon_getasin(){
var data = new Array(); // data[].asin, data[].name
var select = ".productTitle";
if($(select).length <= 0) select = ".title";
$(select).find("a:first").each(function(i){
var asin, name;
asin = $.trim($(this).attr("href"));
asin = substrc(asin, "/dp/", "/ref=");
name = $.trim($(this).attr("href"));
name = substrc(name, "amazon.com/", "/dp/");
name = name.replace(/-/g, "+");
var newdata = {};
newdata.asin = asin;
newdata.name = name;
data.push(newdata);
});
return data;
}
function amazon_showasin(asin){
var select = ".productTitle";
if($(select).length <= 0) select = ".title";
$(select).find("a:first").each(function(i){
if(i<asin.length){
googlestr = "http://www.google.com/#hl=en&gl=us&source=hp&q=" + asin[i].name + "&num=10&aq=f&fp=e8d6ef47431c6a4a";
str = " [" + asin[i].asin + "]";
str += ' <a href="' + googlestr + '">[GG]</a>';
}
str = "<span class='amazon_asin_process'>" + str + "</span>";
$(this).after(str);
});
}
function amazon_getnode(){
var data = new Array(); // data[](node) // thisnode = data[data.length-1]
var thisnode;
$("h1#breadCrumb a").each(function(i){
var node = "";
node = $.trim($(this).attr("href"));
node = substrcll(node, "n%3A", "&ie=");
if(node.indexOf("=")>0) node = substrc(node, "", "&bbn");
data.push(node);
});
thisnode = $("form#hms-response-form input:first").val();
data.push(thisnode);
return data;
}
function amazon_shownode(node){
$("h1#breadCrumb a").each(function(i){
if(i<node.length){
str = "[" + node[i] + "]";
}
str = "<span class='amazon_node_process'>" + str + "</span>";
$(this).after(str);
});
str = "[" + node[node.length-1] + "]";
str = "<span class='amazon_node_process'>" + str + "</span>";
$("h1#breadCrumb").append(str);
}
function amazon_asin_process(){
if($("span.amazon_asin_process").length<=0){
var asin = amazon_getasin();
amazon_showasin(asin);
}
}
function amazon_node_process(){
if($("span.amazon_node_process").length<=0){
var node = amazon_getnode();
amazon_shownode(node);
}
}
function main(){
setInterval(amazon_asin_process, 2000);
setInterval(amazon_node_process, 2000);
}
main();
})();
GM_registerMenuCommand("New_Amazon_ASIN_NODE", function(){
alert("...");
});
เสร็จแล้ว save แล้วปิด editer ไป
กลับมาที่ firefox ให้ set GreaseMonkey ให้มัน enabled นะครับ
แล้วเข้า amazon.com ดูครับ มันจะแสดง node กับ asin ให้ดู จบ...
ข้าง ๆ asin จะเห็น [GG] เพิ่มขึ้นมาด้วย เป็นการสร้าง link ไป google ครับ เป็นอีกแนวความคิดในการเก็บข้อมูลครับ
โดยในกระทู้ที่แล้วเป็นการเก็บแบบทั้งหน้า แต่อันนี้เป็นการเก็บแบบ item ที่เลือก แล้วส่งไป link ที่ต้องการ(ส่งไปเก็บที่เว็บเราเองก็ได้)
(( สำหรับผมนั้นทำให้เกิดแนวความคิดวิชามารขึ้นมาเลยครับแต่ยังไม่ได้ทำนะครับ เช่น สร้าง link ให้ส่ง asin เป็น ajax cross domain ไป localhost lp.php เอาไปดึงข้อมูล xml มาสร้าง my_item_page แล้วส่ง xmlrpc ไปที่เว็บ wp ของเราได้เลย [post เสร็จใน click เดียว!!!] ))
หมายเหตุ
-
ใช้กับ amazon.com เท่านั้น // แก้ไขใหม่ใช้กับ .อื่น ๆ ก็ได้นะครับ
- แสดง node ใช้งานได้โดยเข้าจาก Shop All Departments -> Category แต่ถ้าใช้กับ Search หรืออื่น ๆ จะเพี้ยนบ้าง
- ตรง [GG] เป็นการส่ง คำที่ตัดจาก url ไม่ใช่คำจาก title ของสินค้า
ลองใช้วันที่ 2/11/2010 ตรงส่วน ASIN ใช้ไม่ได้แล้วครับคงเป็นเพราะ amazon.com ใช้การแสดงสินค้าด้วย ajax เลยใช้ไม่ได้เลยครับ
ลองใช้วันที่ 19/3/2011 แก้ไขส่วน ASIN ให้ใช้ได้1.แก้ให้เพิ่ม setTimeout ให้รอ 2 วินาทีให้ amazon เรียก ajax เสร็จก่อนค่อยทำงาน
2.แก้จาก find(".productTitle") ไปเป็น find(".title") แทน
3.แก้ link ไป google เพิ่ม &gl=us เข้าไปให้เหมือนค้นหาจาก us
22/3/2011 แก้อีกทีครับ ให้ใช้กับ amazon.อื่น ๆ แก้ใน codeจาก
// @include http://www.amazon.com/*
เป็น
// @include http://www.amazon.*
เมื่อก่อน GM ไม่ได้ใช้ code ส่วนนี้ครับ จะใช้ตอนเรา create
ตรงช่อง Includes (One per line) ใส่ว่า
แต่เดี๋ยวนี้ GM จะอ่านตรงนี้ไปใช้เลย ซื่งสะดวกมาก จะแก้ไขเราก็แก้ใน code ได้เลย
29/3/2011 แก้ไข code ใหม่หมด ก็อปไปทับได้เลยครับversion นี้ เขียน code ใหม่หมดเลยครับ ให้ตรงกับรูปแบบ GM version ใหม่ ๆ
และให้ code ดูสวยขึ้นด้วย และให้มีโอกาสเกิด bug น้อยลงด้วยครับ
ถ้าท่านที่ใช้อยู่เจอ bug (ร้ายแรง) ตรงไหนแจ้งทาง PM ได้เลยครับ