2008年08月19日

AmazonAWSの分離(ChildTree)

 昨日書いていた、ChildTreeのアマゾン広告表示部分ですが、結局分けることにしました。
 で、いまゴリゴリ書いています。

 折角だからXML::Simpleとかで解析かけようかとやってみたのですが……UTFフラグうざすぎ。
 強制的にフラグくっつけてくれるモジュール使うなら、最初からそれを念頭に置いて書かないとだめっぽいです。

 というわけで、結局正規表現でごりごり。だって、早いって言うし。(→Perl で XML の処理はどれが速いかベンチ : NDO::Weblog

解析部分のソースはこんな感じ。(追記に書いています)

# アマゾン解析ルーチン(正規表現)
sub XML_Ana_Amazon{
my $xml = $_[0];

#エラーコードが含まれていないかチェック
return() if($xml =~ /<Errors><Error><Code>AWS\.ECommerceService\.NoExactMatches<\/Code>/);

#ハッシュ名を定義
my %list;
# @Itemに格納
my @Item = ($xml =~ /<Item>(.+?)<\/Item>/gc);
#ひたすらノードの中身を代入代入
foreach(@Item){
#ASINを取得
/<ASIN>(.+?)<\/ASIN>/;
my $ASIN = $1;
$list{$ASIN}{'ASIN'} = $ASIN;

#タイトルを取得
$list{$ASIN}{'Title'} = (/<ItemAttributes>.*<Title>(.+?)<\/Title>.*<\/ItemAttributes>/m)[0];
#詳細URLを取得
$list{$ASIN}{'URL'} = (/<DetailPageURL>(.+?)<\/DetailPageURL>/)[0];
#セールスランクを取得
$list{$ASIN}{'Rank'} = (/<SalesRank>(.+?)<\/SalesRank>/)[0];
#発売日を取得
$list{$ASIN}{'Release'} = (/<ItemAttributes>.*<ReleaseDate>(.+?)<\/ReleaseDate>.*<\/ItemAttributes>/m)[0];
#画像のURL
$list{$ASIN}{'ImageURL'} = (/<SmallImage>.*<URL>(.+?)<\/URL>.*<\/SmallImage>/m)[0];
#画像の横幅
$list{$ASIN}{'ImageWidth'} = (/<SmallImage>.*<Width.*?>(.+?)<\/Width>.*<\/SmallImage>/m)[0];
#画像の縦幅
$list{$ASIN}{'ImageHeight'} = (/<SmallImage>.*<Height.*?>(.+?)<\/Height>.*<\/SmallImage>/m)[0];
#参考価格の取得
$list{$ASIN}{'ListPrice'} = (/<ItemAttributes>.*<ListPrice>.*<Amount>(.+?)<\/Amount>.*<\/ListPrice>.*<\/ItemAttributes>/m)[0];
#参考価格の通貨
$list{$ASIN}{'ListPriceCur'} = (/<ItemAttributes>.*<ListPrice>.*<CurrencyCode>(.+?)<\/CurrencyCode>.*<\/ListPrice>.*<\/ItemAttributes>/m)[0];
#参考価格(フォーマット済み)
($list{$ASIN}{'ListPriceFormatted'} = (/<ItemAttributes>.*<ListPrice>.*<FormattedPrice>(.+?)<\/FormattedPrice>.*<\/ListPrice>.*<\/ItemAttributes>/m)[0]) =~ s/\s//g;
#新品価格の取得
$list{$ASIN}{'NewPrice'} = (/<OfferSummary>.*<LowestNewPrice>.*<Amount>(.+?)<\/Amount>.*<\/LowestNewPrice>.*<\/OfferSummary>/m)[0];
#新品価格の通貨
$list{$ASIN}{'NewPriceCur'} = (/<OfferSummary>.*<LowestNewPrice>.*<CurrencyCode>(.+?)<\/CurrencyCode>.*<\/LowestNewPrice>.*<\/OfferSummary>/m)[0];
#新品価格(フォーマット済み)
($list{$ASIN}{'NewPriceFormatted'} = (/<OfferSummary>.*<LowestNewPrice>.*<FormattedPrice>(.+?)<\/FormattedPrice>.*<\/LowestNewPrice>.*<\/OfferSummary>/m)[0]) =~ s/\s//g;
#新品の取扱店
$list{$ASIN}{'NewShops'} = (/<OfferSummary>.*<TotalNew>(.+?)<\/TotalNew>.*<\/OfferSummary>/m)[0];
#中古価格の取得
$list{$ASIN}{'UsedPrice'} = (/<OfferSummary>.*<LowestUsedPrice>.*<Amount>(.+?)<\/Amount>.*<\/LowestUsedPrice>.*<\/OfferSummary>/m)[0];
#中古価格の通貨
$list{$ASIN}{'UsedPriceCur'} = (/<OfferSummary>.*<LowestUsedPrice>.*<CurrencyCode>(.+?)<\/CurrencyCode>.*<\/LowestUsedPrice>.*<\/OfferSummary>/m)[0];
#中古価格(フォーマット済み)
($list{$ASIN}{'UsedPriceFormatted'} = (/<OfferSummary>.*<LowestUsedPrice>.*<FormattedPrice>(.+?)<\/FormattedPrice>.*<\/LowestUsedPrice>.*<\/OfferSummary>/m)[0]) =~ s/\s//g;
#中古品の取扱店
$list{$ASIN}{'UsedShops'} = (/<OfferSummary>.*<TotalUsed>(.+?)<\/TotalUsed>.*<\/OfferSummary>/m)[0];

#ItemLinkの中身を検索
foreach(/<ItemLink>(.+?)<\/ItemLink>/gc){
s/Add To Wishlist/AddWishList/;
s/Tell A Friend/TellFriend/;
s/All Customer Reviews/ReviewPage/;
s/All Offers/OfferURL/;
/<Description>(.+?)<\/Description>.*<URL>(.+?)<\/URL>/;
$list{$ASIN}{$1} = $2;
}
#アダルト商品フラグ
$list{$ASIN}{'IsAdult'} = (/<ItemAttributes>.*<IsAdultProduct>(.+?)<\/IsAdultProduct>.*<\/ItemAttributes>/m)[0];
}
return(\%list);
}


Amazonから返ってきたXMLを投げると、結果を格納した多次元ハッシュへのリファレンスを返します。こんな感じ。

$VAR1 = {
'B000FCUTZY' => {
'NewPriceFormatted' => '¥17,226',
'UsedPriceFormatted' => undef,
'ListPriceFormatted' => '¥19,950',
'NewShops' => '3',
'ImageWidth' => '62',
'AddWishList' => 'http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000FCUTZY%26SubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000FCUTZY',
'NewPriceCur' => 'JPY',
'NewPrice' => '17226',
'ListPrice' => '19950',
'Title' => 'Vocaloid Kaito',
'TellFriend' => 'http://www.amazon.co.jp/gp/pdp/taf/B000FCUTZY%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000FCUTZY',
'Release' => '2006-04-07',
'ASIN' => 'B000FCUTZY',
'UsedPrice' => undef,
'URL' => 'http://www.amazon.co.jp/%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%83%B3%E3%83%BB%E3%83%95%E3%83%A5%E3%83%BC%E3%83%81%E3%83%A3%E3%83%BC%E3%83%BB%E3%83%A1%E3%83%87%E3%82%A3%E3%82%A2-CRV2-Kaito-Vocaloid/dp/B000FCUTZY%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000FCUTZY',
'ListPriceCur' => 'JPY',
'IsAdult' => undef,
'UsedPriceCur' => undef,
'ImageURL' => 'http://ecx.images-amazon.com/images/I/51j-FdGPCoL._SL75_.jpg',
'OfferURL' => 'http://www.amazon.co.jp/gp/offer-listing/B000FCUTZY%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000FCUTZY',
'ImageHeight' => '75',
'Rank' => '154',
'UsedShops' => '0',
'ReviewPage' => 'http://www.amazon.co.jp/review/product/B000FCUTZY%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000FCUTZY'
},
'B001AIJXGI' => {
'NewPriceFormatted' => undef,
'UsedPriceFormatted' => undef,
'ListPriceFormatted' => '¥3,000',
'NewShops' => '0',
'ImageWidth' => '46',
'AddWishList' => 'http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3DB001AIJXGI%26SubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001AIJXGI',
'NewPriceCur' => undef,
'NewPrice' => undef,
'ListPrice' => '3000',
'Title' => 'ねんどろいど 鏡音リン (ノンスケールABS/PVC塗装済み可動フィギュア)',
'TellFriend' => 'http://www.amazon.co.jp/gp/pdp/taf/B001AIJXGI%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001AIJXGI',
'Release' => '2008-10-25',
'ASIN' => 'B001AIJXGI',
'UsedPrice' => undef,
'URL' => 'http://www.amazon.co.jp/%E3%82%B0%E3%83%83%E3%83%89%E3%82%B9%E3%83%9E%E3%82%A4%E3%83%AB%E3%82%AB%E3%83%B3%E3%83%91%E3%83%8B%E3%83%BC-%E3%81%AD%E3%82%93%E3%81%A9%E3%82%8D%E3%81%84%E3%81%A9-%E9%8F%A1%E9%9F%B3%E3%83%AA%E3%83%B3-%E3%83%8E%E3%83%B3%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%ABABS-PVC%E5%A1%97%E8%A3%85%E6%B8%88%E3%81%BF%E5%8F%AF%E5%8B%95%E3%83%95%E3%82%A3%E3%82%AE%E3%83%A5%E3%82%A2/dp/B001AIJXGI%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB001AIJXGI',
'ListPriceCur' => 'JPY',
'IsAdult' => undef,
'UsedPriceCur' => undef,
'ImageURL' => 'http://ecx.images-amazon.com/images/I/41bpwT%2BhysL._SL75_.jpg',
'OfferURL' => 'http://www.amazon.co.jp/gp/offer-listing/B001AIJXGI%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001AIJXGI',
'ImageHeight' => '75',
'Rank' => '65',
'UsedShops' => '0',
'ReviewPage' => 'http://www.amazon.co.jp/review/product/B001AIJXGI%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001AIJXGI'
},
'B001BIXLOC' => {
'NewPriceFormatted' => '¥13,702',
'UsedPriceFormatted' => undef,
'ListPriceFormatted' => '¥15,750',
'NewShops' => '6',
'ImageWidth' => '44',
'AddWishList' => 'http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3DB001BIXLOC%26SubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001BIXLOC',
'NewPriceCur' => 'JPY',
'NewPrice' => '13702',
'ListPrice' => '15750',
'Title' => 'VOCALOID2 鏡音リン・レン act2',
'TellFriend' => 'http://www.amazon.co.jp/gp/pdp/taf/B001BIXLOC%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001BIXLOC',
'Release' => '2008-07-18',
'ASIN' => 'B001BIXLOC',
'UsedPrice' => undef,
'URL' => 'http://www.amazon.co.jp/%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%83%B3%E3%83%BB%E3%83%95%E3%83%A5%E3%83%BC%E3%83%81%E3%83%A3%E3%83%BC%E3%83%BB%E3%83%A1%E3%83%87%E3%82%A3%E3%82%A2-CV02V2-VOCALOID2-%E9%8F%A1%E9%9F%B3%E3%83%AA%E3%83%B3%E3%83%BB%E3%83%AC%E3%83%B3-act2/dp/B001BIXLOC%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB001BIXLOC',
'ListPriceCur' => 'JPY',
'IsAdult' => undef,
'UsedPriceCur' => undef,
'ImageURL' => 'http://ecx.images-amazon.com/images/I/510GMBBztJL._SL75_.jpg',
'OfferURL' => 'http://www.amazon.co.jp/gp/offer-listing/B001BIXLOC%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001BIXLOC',
'ImageHeight' => '75',
'Rank' => '105',
'UsedShops' => '0',
'ReviewPage' => 'http://www.amazon.co.jp/review/product/B001BIXLOC%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001BIXLOC'
},
'B001AILW9E' => {
'NewPriceFormatted' => undef,
'UsedPriceFormatted' => undef,
'ListPriceFormatted' => '¥3,000',
'NewShops' => '0',
'ImageWidth' => '49',
'AddWishList' => 'http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3DB001AILW9E%26SubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001AILW9E',
'NewPriceCur' => undef,
'NewPrice' => undef,
'ListPrice' => '3000',
'Title' => 'ねんどろいど 鏡音レン (ノンスケールABS/PVC塗装済み可動フィギュア)',
'TellFriend' => 'http://www.amazon.co.jp/gp/pdp/taf/B001AILW9E%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001AILW9E',
'Release' => '2008-10-25',
'ASIN' => 'B001AILW9E',
'UsedPrice' => undef,
'URL' => 'http://www.amazon.co.jp/%E3%82%B0%E3%83%83%E3%83%89%E3%82%B9%E3%83%9E%E3%82%A4%E3%83%AB%E3%82%AB%E3%83%B3%E3%83%91%E3%83%8B%E3%83%BC-%E3%81%AD%E3%82%93%E3%81%A9%E3%82%8D%E3%81%84%E3%81%A9-%E9%8F%A1%E9%9F%B3%E3%83%AC%E3%83%B3-%E3%83%8E%E3%83%B3%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%ABABS-PVC%E5%A1%97%E8%A3%85%E6%B8%88%E3%81%BF%E5%8F%AF%E5%8B%95%E3%83%95%E3%82%A3%E3%82%AE%E3%83%A5%E3%82%A2/dp/B001AILW9E%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB001AILW9E',
'ListPriceCur' => 'JPY',
'IsAdult' => undef,
'UsedPriceCur' => undef,
'ImageURL' => 'http://ecx.images-amazon.com/images/I/41jouHMm9YL._SL75_.jpg',
'OfferURL' => 'http://www.amazon.co.jp/gp/offer-listing/B001AILW9E%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001AILW9E',
'ImageHeight' => '75',
'Rank' => '71',
'UsedShops' => '0',
'ReviewPage' => 'http://www.amazon.co.jp/review/product/B001AILW9E%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001AILW9E'
},
'B000FCUU08' => {
'NewPriceFormatted' => '¥17,820',
'UsedPriceFormatted' => undef,
'ListPriceFormatted' => '¥19,950',
'NewShops' => '3',
'ImageWidth' => '75',
'AddWishList' => 'http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000FCUU08%26SubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000FCUU08',
'NewPriceCur' => 'JPY',
'NewPrice' => '17820',
'ListPrice' => '19950',
'Title' => 'Vocaloid Meiko',
'TellFriend' => 'http://www.amazon.co.jp/gp/pdp/taf/B000FCUU08%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000FCUU08',
'Release' => '2006-04-07',
'ASIN' => 'B000FCUU08',
'UsedPrice' => undef,
'URL' => 'http://www.amazon.co.jp/%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%83%B3%E3%83%BB%E3%83%95%E3%83%A5%E3%83%BC%E3%83%81%E3%83%A3%E3%83%BC%E3%83%BB%E3%83%A1%E3%83%87%E3%82%A3%E3%82%A2-Meiko-Vocaloid/dp/B000FCUU08%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000FCUU08',
'ListPriceCur' => 'JPY',
'IsAdult' => undef,
'UsedPriceCur' => undef,
'ImageURL' => 'http://ecx.images-amazon.com/images/I/51PBYlaJl%2BL._SL75_.jpg',
'OfferURL' => 'http://www.amazon.co.jp/gp/offer-listing/B000FCUU08%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000FCUU08',
'ImageHeight' => '75',
'Rank' => '1350',
'UsedShops' => '0',
'ReviewPage' => 'http://www.amazon.co.jp/review/product/B000FCUU08%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000FCUU08'
},
'4636828178' => {
'NewPriceFormatted' => '¥2,494',
'UsedPriceFormatted' => '¥1,800',
'ListPriceFormatted' => '¥2,625',
'NewShops' => '1',
'ImageWidth' => '53',
'AddWishList' => 'http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3D4636828178%26SubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4636828178',
'NewPriceCur' => 'JPY',
'NewPrice' => '2494',
'ListPrice' => '2625',
'Title' => 'はじめての初音ミク ボーカロイド2 オフィシャルガイドブック(DVD-ROM付) (キャラクター・ボーカロイドシリーズ) (キャラクター・ボーカロイドシリーズ)',
'TellFriend' => 'http://www.amazon.co.jp/gp/pdp/taf/4636828178%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4636828178',
'Release' => undef,
'ASIN' => '4636828178',
'UsedPrice' => '1800',
'URL' => 'http://www.amazon.co.jp/%E3%81%AF%E3%81%98%E3%82%81%E3%81%A6%E3%81%AE%E5%88%9D%E9%9F%B3%E3%83%9F%E3%82%AF-%E3%83%9C%E3%83%BC%E3%82%AB%E3%83%AD%E3%82%A4%E3%83%892-%E3%82%AA%E3%83%95%E3%82%A3%E3%82%B7%E3%83%A3%E3%83%AB%E3%82%AC%E3%82%A4%E3%83%89%E3%83%96%E3%83%83%E3%82%AF-DVD-ROM%E4%BB%98-%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E3%83%BC%E3%83%BB%E3%83%9C%E3%83%BC%E3%82%AB%E3%83%AD%E3%82%A4%E3%83%89%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA/dp/4636828178%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4636828178',
'ListPriceCur' => 'JPY',
'IsAdult' => undef,
'UsedPriceCur' => 'JPY',
'ImageURL' => 'http://ecx.images-amazon.com/images/I/51qkGgbkRwL._SL75_.jpg',
'OfferURL' => 'http://www.amazon.co.jp/gp/offer-listing/4636828178%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4636828178',
'ImageHeight' => '75',
'Rank' => '2589',
'UsedShops' => '2',
'ReviewPage' => 'http://www.amazon.co.jp/review/product/4636828178%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4636828178'
},
'B000VCZ75A' => {
'NewPriceFormatted' => '¥13,702',
'UsedPriceFormatted' => undef,
'ListPriceFormatted' => '¥15,750',
'NewShops' => '9',
'ImageWidth' => '53',
'AddWishList' => 'http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000VCZ75A%26SubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000VCZ75A',
'NewPriceCur' => 'JPY',
'NewPrice' => '13702',
'ListPrice' => '15750',
'Title' => 'VOCALOID2 キャラクターボーカルシリーズ01 初音ミク HATSUNE MIKU',
'TellFriend' => 'http://www.amazon.co.jp/gp/pdp/taf/B000VCZ75A%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000VCZ75A',
'Release' => '2007-08-31',
'ASIN' => 'B000VCZ75A',
'UsedPrice' => undef,
'URL' => 'http://www.amazon.co.jp/VOCALOID2-%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E3%83%BC%E3%83%9C%E3%83%BC%E3%82%AB%E3%83%AB%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA01-%E5%88%9D%E9%9F%B3%E3%83%9F%E3%82%AF-HATSUNE-MIKU/dp/B000VCZ75A%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000VCZ75A',
'ListPriceCur' => 'JPY',
'IsAdult' => undef,
'UsedPriceCur' => undef,
'ImageURL' => 'http://ecx.images-amazon.com/images/I/41Pb-hoEkAL._SL75_.jpg',
'OfferURL' => 'http://www.amazon.co.jp/gp/offer-listing/B000VCZ75A%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000VCZ75A',
'ImageHeight' => '75',
'Rank' => '30',
'UsedShops' => '0',
'ReviewPage' => 'http://www.amazon.co.jp/review/product/B000VCZ75A%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB000VCZ75A'
},
'B001B6IQVM' => {
'NewPriceFormatted' => '¥16,356',
'UsedPriceFormatted' => undef,
'ListPriceFormatted' => '¥18,900',
'NewShops' => '7',
'ImageWidth' => '54',
'AddWishList' => 'http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3DB001B6IQVM%26SubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001B6IQVM',
'NewPriceCur' => 'JPY',
'NewPrice' => '16356',
'ListPrice' => '18900',
'Title' => 'がくっぽいど',
'TellFriend' => 'http://www.amazon.co.jp/gp/pdp/taf/B001B6IQVM%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001B6IQVM',
'Release' => '2008-07-31',
'ASIN' => 'B001B6IQVM',
'UsedPrice' => undef,
'URL' => 'http://www.amazon.co.jp/%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%8D%E3%83%83%E3%83%88-VAG01-%E3%81%8C%E3%81%8F%E3%81%A3%E3%81%BD%E3%81%84%E3%81%A9/dp/B001B6IQVM%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB001B6IQVM',
'ListPriceCur' => 'JPY',
'IsAdult' => undef,
'UsedPriceCur' => undef,
'ImageURL' => 'http://ecx.images-amazon.com/images/I/514aIZ7w4QL._SL75_.jpg',
'OfferURL' => 'http://www.amazon.co.jp/gp/offer-listing/B001B6IQVM%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001B6IQVM',
'ImageHeight' => '75',
'Rank' => '143',
'UsedShops' => '0',
'ReviewPage' => 'http://www.amazon.co.jp/review/product/B001B6IQVM%3FSubscriptionId%3D1WCH86T0QN4Q27W2RA82%26tag%3Dcgibinjp-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB001B6IQVM'
}
};


ああ、でもアマゾンて10件までしか検索結果返してくれないんだよね。ValueCommerceは100件までできるのに。そういや、ValueCommerceの広告主にアマゾンも入っていたっけ。中古品の価格が取得できなくなるけど……マニュアルも日本語であるし。
タグ:Amazon
posted by 鯖缶 at 03:13 | Comment(0) | TrackBack(0) | ただいま開発中 | このブログの読者になる | 更新情報をチェックする
この記事へのコメント
コメントを書く
お名前: [必須入力]

メールアドレス:

ホームページアドレス:

コメント: [必須入力]

※ブログオーナーが承認したコメントのみ表示されます。
この記事へのトラックバックURL
http://blog.seesaa.jp/tb/104970644

この記事へのトラックバック