amazon สินค้าหน้าเดียว<<<>>>ครับพี่น้อง

เริ่มโดย คนเดินทางไกล, 21 มกราคม 2011, 18:11:54

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

zekan

แหล่งรวม[direct=http://www.siamplan.com]แบบบ้าน[/direct]ราคาประหยัด รับเขียนแบบบ้าน  และยังมี[direct=http://www.siamplan.com/index.php/freeplan]แบบบ้านฟรี[/direct]ให้เลือกดาวน์โหลดฟรีอีกมากมาย พร้อมทั้ง[direct=http://www.siamplan.com/index.php/firstfloor]แบบบ้านชั้นเดียว[/direct]อีกหลายหลังให้ท่านเลือกพิจารณา และมี [direct=https://play.google.com/store/apps/details?id=com.siamplan.freeplan]Application[/direct] แบบบ้านฟรีอีกด้วย แถมตอนนี้เรามี [direct=https://www.youtube.com/channel/UCSJhjzmwsqSVFJU8FDg-Bjg]ช่อง TV[/direct] ใน youtube เพิ่มอีก

SearchMarketing

#21
สวยจัง

อยากได้แบบนี้แต่ ทำเป็น search operation แบบ ศรเพชรอะครับ

แต่ gen เรียง 3x3

ใครทำได้บ้าง ทำไม่เป็น

search operation คือ gen สินค้าตาม keyword กำหนด node ได้ก็ดี อิอิ  :'(

aek26

เพราะแสวงหา มิใช่เพราะรอคอย เพราะเชี่ยวชาญ มิใช่เพราะโอกาส เพราะสามารถ มิใช่เพราะโชคช่วย ดังนี้แล้ว "ลิขิตฟ้าหรือจะสู้มานะตน"
[direct=http://www.108keychain.com]พวงกุญแจ[/direct]
[direct=http://www.xn--12cgajg3a0jxbsn4esb4cb5c7i.com]พวงกุญแจอะคริลิค[/direct]
[direct=http://www.xn--12clet6fwa1b4j8c5a0d.com]พวงกุญแจไม้[/direct]
[direct=http://www.facebook.com/108keychain]ของชำร่วย[/direct]

bot2o

อ้างถึงจาก: คนเดินทางไกล ใน 21 มกราคม 2011, 18:11:54
จากกระทู้นี้ครับ
http://www.thaiseoboard.com/index.php/topic,163867.0.html

ผมไม่ได้เขียนเองนะครับแค่เอามาปรับแต่งเพิ่มเติมนิดหน่อย

<?php
$tag
="xxxxxxxxxxxx-20";
$asin "B001ADA5HY";
$AWSAccessKeyId "xxxxxxxxxx";
$SecretAccessKey "xxxxxxxxx";
$title="xxxxxxxxxxxxxx";
$keyword="xxxxxxxxxxxxxx";
$descrpit='xxxxxxxxxxxx';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>#1: BUY  :<?php echo ''.$title.'';?> SAVE PRICES!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="http://drivemedicalheavydutysuctionmachine.shopallzone.com/"></base>
<meta http-equiv="keywords" content="<?php echo ''.$keyword.'';?>"/>
<meta http-equiv="description" content="<?php echo ''.$descrpit.'';?>"/>
<meta http-equiv="imagetoolbar" content="no" />
<meta name="robots" content="index, follow">
<meta name="revisit-after" content="1 days">
<meta name="rating" content="general">
<meta http-equiv="expires" content="0">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
</head>
<body>
<div align="center">
<?php
$protocol 
strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https'
                === 
FALSE 'http' 'https';
$host     $_SERVER['HTTP_HOST'];
$script   $_SERVER['SCRIPT_NAME'];
$params   $_SERVER['QUERY_STRING'];
 
$currentUrl $protocol '://' $host $script '?' $params;
$currentUrl=str_replace("index.php?","",$currentUrl);

echo
'<font size="1">'.$keyword.'</font></br>';

$Timestamp gmdate("Y-m-d\TH:i:s\Z"); 
$Timestamp str_replace(":""%3A"$Timestamp);
$ResponseGroup "ItemAttributes,Offers,Images,Reviews,EditorialReview,OfferFull,OfferSummary";
$ResponseGroup str_replace(",""%2C"$ResponseGroup);

$String "AWSAccessKeyId=$AWSAccessKeyId&
ItemId=
$asin&
Operation=ItemLookup&
ResponseGroup=
$ResponseGroup&
Service=AWSECommerceService&
Timestamp=
$Timestamp&
Version=2009-01-06"
;

$String str_replace("\n"""$String); 

$Prepend "GET\nwebservices.amazon.com\n/onca/xml\n";
$PrependString $Prepend $String;

$Signature base64_encode(hash_hmac("sha256"$PrependString$SecretAccessKeyTrue));  
$Signature str_replace("+""%2B"$Signature);
$Signature str_replace("=""%3D"$Signature);

$BaseUrl "http://webservices.amazon.com/onca/xml?";
$SignedRequest $BaseUrl $String "&Signature=" $Signature;
$XML simplexml_load_file($SignedRequest);
$session curl_init($SignedRequest);
curl_setopt($sessionCURLOPT_HEADERfalse);
curl_setopt($sessionCURLOPT_RETURNTRANSFERtrue);
$response curl_exec($session);
curl_close($session); 
$parsed_xml simplexml_load_string($response);
$ListPrice=$parsed_xml->Items->Item->ItemAttributes->ListPrice->FormattedPrice;
$AmountListPrice=$parsed_xml->Items->Item->ItemAttributes->ListPrice->Amount;
$MediumImage=$parsed_xml->Items->Item->LargeImage->URL;
$offersurl=$parsed_xml->Items->Item->ItemLinks->ItemLink[6]->URL;
$url$parsed_xml->Items->Item->DetailPageURL ;
$urlreviews=$parsed_xml->Items->Item->ItemLinks->ItemLink[2]->URL;
$Offer_name=$itemoffer->Merchant->Name;
$EditorialReviews=$parsed_xml->Items->Item->EditorialReviews->EditorialReview->Content;
$content .='<br><br><font color="blue" size="5">'.$parsed_xml->Items->Item->ItemAttributes->Title.'</font><br>';
$content .= ($EditorialReviews);
$pricelist$parsed_xml->Items->Item->ItemAttributes->ListPrice->FormattedPrice;
$price=$parsed_xml->Items->Item->Offers->Offer->OfferListing->Price->FormattedPrice;
$Manufacturer$parsed_xml->Items->Item->ItemAttributes->Manufacturer;
$LowestNewPrice=$parsed_xml->Items->Item->OfferSummary->LowestNewPrice->FormattedPrice;
$LowestUsedPrice=$parsed_xml->Items->Item->OfferSummary->LowestUsedPrice->FormattedPrice;
$TotalNew=$parsed_xml->Items->Item->OfferSummary->TotalNew;
$TotalUsed=$parsed_xml->Items->Item->OfferSummary->TotalUsed;
$LowestNewPrice=$parsed_xml->Items->Item->OfferSummary->LowestNewPrice->FormattedPrice;
$ListPrice=$parsed_xml->Items->Item->ItemAttributes->ListPrice->FormattedPrice;
$AmountListPrice=$parsed_xml->Items->Item->ItemAttributes->ListPrice->Amount;
$pricesave=$AmountListPrice-$AmountLowestNewPrice;
$AmountLowestNewPrice=$parsed_xml->Items->Item->OfferSummary->LowestNewPrice->Amount;
$Feature=$parsed_xml->Items->Item->EditorialReviews->EditorialReview[0]->Content;
$content .= "<table border='0' bordercolor='#fff'></br><tr><td><a href='http://www.amazon.com/dp/$asin/?tag=$tag' target='_blank'><img src=".$MediumImage." border='0'></img></a></td>";
$content .= "<td >".$parsed_xml->Items->Item->ItemAttributes->Title."<br>";
$content .= "<font size='2'>By: ".$Manufacturer."</font><br><hr>";
$content .= "Pricelist:".$pricelist."<br>";
$content .= "LowestNewPrice:".$LowestNewPrice."<br>";
$content .= "<font color='green'face='verdana' size='4'>Sale Price:".$price."</font><br>";
$pricelist=str_replace("$","",$pricelist);
$price=str_replace("$","",$price);
$save=number_format($pricelist-$price,2);
$content .= "PriceSave:$".$save."</br>";
$content .= "<br><a href='http://www.amazon.com/gp/aws/cart/add.html?AssociateTag=$tag&ASIN.1=$asin&Quantity.1=1' rel='nofollow' target='_blank'><img src='http://spmedicaladjustablecpapchinstrap.shopallzone.com/buy1.gif' border='0'></img></a></td></tr></table>";
$content .= "<h2>".$parsed_xml->Items->Item->ItemAttributes->Title." Product Feature</h2>";
foreach (
$parsed_xml->Items->Item->ItemAttributes->Feature as $itemFeature){
                  
$content .="<li>$itemFeature </li> \n";   
                   }
$amazonitem="<br>".$parsed_xml->Items->Item->EditorialReviews->EditorialReview[1]->Content;
$content .=$amazonitem;
$content .="<br><a href='http://www.amazon.com/dp/$asin/?tag=$tag' rel='nofollow' target='_blank'><img src='http://spmedicaladjustablecpapchinstrap.shopallzone.com/fsbuy.png' border='0'></img></a>";
$content .="<h3>Customer Reviews</h3>";
$content .="<a href='http://www.amazon.com/product-reviews/$asin/?tag=$tag' rel='nofollow' target='_blank'><img src='http://spmedicaladjustablecpapchinstrap.shopallzone.com/cw1go.gif' border='0'></img></a>";
print 
$content;
echo 
'<p align="center">by <a href="'.$currentUrl.'" title="'.$title.'">'.$title.'</a></p>';
?>

</div>
<!-- banner -->
<div align="center">ใส่แบนเนอร์</div>
</body>
</html>


เซฟเป็น  php นะครับ
ตัวอย่าง
http://drivemedicalheavydutysuctionmachine.shopallzone.com/