I sell books on amazon.co.uk and what I'd like to do is have all my items on Amazon linked from my not-yet-built website hosted on x10.
So I was thinking that for a start I'd use AWS to retrieve my listings using this:
http://webservices.amazon.co.uk/onc...tingPage=1&Sort=-startdate&Version=2008-04-07
which returns xml like this, with 10 results:
<?xml version="1.0" encoding="UTF-8" ?>
- <SellerListingSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2008-04-07">
- <OperationRequest>
- <HTTPHeaders>
<Header Name="UserAgent" Value="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" />
</HTTPHeaders>
<RequestId>1VCVXASJXJY91WEP0HCR</RequestId>
- <Arguments>
<Argument Name="Sort" Value="-startdate" />
<Argument Name="ListingPage" Value="1" />
<Argument Name="Service" Value="AWSECommerceService" />
<Argument Name="AWSAccessKeyId" Value="(my.access.key)" />
<Argument Name="SellerId" Value="A2PRXGY7GRFPGX" />
<Argument Name="Version" Value="2008-04-07" />
<Argument Name="ResponseGroup" Value="SellerListing" />
<Argument Name="Operation" Value="SellerListingSearch" />
</Arguments>
<RequestProcessingTime>0.206453084945679</RequestProcessingTime>
</OperationRequest>
- <SellerListings>
- <Request>
<IsValid>True</IsValid>
- <SellerListingSearchRequest>
<ListingPage>1</ListingPage>
<ResponseGroup>SellerListing</ResponseGroup>
<SellerId>A2PRXGY7GRFPGX</SellerId>
<Sort>-startdate</Sort>
</SellerListingSearchRequest>
</Request>
<TotalResults>5845</TotalResults>
<TotalPages>585</TotalPages>
- <SellerListing>
<ExchangeId>Y09Y4610358Y3144538</ExchangeId>
<ListingId>0513H546942</ListingId>
<ASIN>B000S5O6WU</ASIN>
<SKU>/hj5357/</SKU>
<WillShipExpedited>0</WillShipExpedited>
<WillShipInternational>1</WillShipInternational>
<Title>Queen Of The Daffodils - A Story of High-School Life [Hardcover] by Leslie...</Title>
- <Price>
<Amount>895</Amount>
<CurrencyCode>GBP</CurrencyCode>
<FormattedPrice>£8.95</FormattedPrice>
</Price>
<StartDate>2008-05-13</StartDate>
<EndDate>2011-04-28</EndDate>
<Status>Open</Status>
<Quantity>1</Quantity>
<Condition>used</Condition>
<SubCondition>acceptable</SubCondition>
- <Seller>
<SellerId>A2PRXGY7GRFPGX</SellerId>
<Nickname>booksgo</Nickname>
</Seller>
</SellerListing>
- <SellerListing>
<ExchangeId>Y09Y0130258Y5553515</ExchangeId>
<ListingId>0513F607845</ListingId>
<ASIN>B000IYXKPA</ASIN>
<SKU>/hn5358/</SKU>
<WillShipExpedited>0</WillShipExpedited>
<WillShipInternational>0</WillShipInternational>
<Title>The Drifting Island [Hardcover] by Wentworth, Walter</Title>
- <Price>
<Amount>595</Amount>
<CurrencyCode>GBP</CurrencyCode>
<FormattedPrice>£5.95</FormattedPrice>
</Price>
<StartDate>2008-05-13</StartDate>
<EndDate>2011-04-28</EndDate>
<Status>Open</Status>
<Quantity>1</Quantity>
<Condition>used</Condition>
<SubCondition>acceptable</SubCondition>
- <Seller>
<SellerId>A2PRXGY7GRFPGX</SellerId>
<Nickname>booksgo</Nickname>
</Seller>
</SellerListing>
- <SellerListing>
<ExchangeId>Y09Y0332249Y0389734</ExchangeId>
<ListingId>0513T157891</ListingId>
<ASIN>B0014MFVXY</ASIN>
<SKU>/hn5357/</SKU>
<WillShipExpedited>0</WillShipExpedited>
<WillShipInternational>1</WillShipInternational>
<Title>The Sunset Express. A story of Canadian railway life, etc [Unknown Binding] by</Title>
- <Price>
<Amount>1495</Amount>
<CurrencyCode>GBP</CurrencyCode>
<FormattedPrice>£14.95</FormattedPrice>
</Price>
<StartDate>2008-05-13</StartDate>
<EndDate>2011-04-28</EndDate>
<Status>Open</Status>
<Quantity>1</Quantity>
<Condition>used</Condition>
<SubCondition>acceptable</SubCondition>
- <Seller>
<SellerId>A2PRXGY7GRFPGX</SellerId>
<Nickname>booksgo</Nickname>
</Seller>
</SellerListing>
I'VE SNIPPED THE OTHERS
</SellerListings>
</SellerListingSearchResponse>
So then I want to take the ASIN value for each item and have it automatically inserted it into this url, where it says ASIN:
http://www.amazon.co.uk/gp/offer-li...?ie=UTF8&seller=A2PRXGY7GRFPGX&tag=booksgo-21
So the end result would be a html page with a list of titles each with a link to its own page on Amazon where I have my description
eg.
1) Queen Of The Daffodils - A Story of High-School Life [Hardcover] by Leslie... l
inked to:http://www.amazon.co.uk/gp/offer-li...?ie=UTF8&seller=A2PRXGY7GRFPGX&tag=booksgo-21
2) The Drifting Island [Hardcover] by Wentworth, Walter
linked to:http://www.amazon.co.uk/gp/offer-li...?ie=UTF8&seller=A2PRXGY7GRFPGX&tag=booksgo-21
3) etc.
Hopefully I've made it clear.
If that is possible, the next hurdle is that Amazon AWS only returns 10 results per page, up to a max. of 500 pages (by changing the &ListingPage= value) ie a max. of 5000 items. As I currently have 5,800+ items that isn't enough, but I think the way round it is to reverse the startdate order which is easy enough, so to get the 5000 oldest items as well as the 5000 newest items which gives me a bit of leeway until I get around to listing 4000 more items, which won't be happening for a while, if ever.
Anyway, I guess it would need a database and PHP - both of which I don't know anything about!
All ideas appreciated, especially if they are expressed in simple language
So I was thinking that for a start I'd use AWS to retrieve my listings using this:
http://webservices.amazon.co.uk/onc...tingPage=1&Sort=-startdate&Version=2008-04-07
which returns xml like this, with 10 results:
<?xml version="1.0" encoding="UTF-8" ?>
- <SellerListingSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2008-04-07">
- <OperationRequest>
- <HTTPHeaders>
<Header Name="UserAgent" Value="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" />
</HTTPHeaders>
<RequestId>1VCVXASJXJY91WEP0HCR</RequestId>
- <Arguments>
<Argument Name="Sort" Value="-startdate" />
<Argument Name="ListingPage" Value="1" />
<Argument Name="Service" Value="AWSECommerceService" />
<Argument Name="AWSAccessKeyId" Value="(my.access.key)" />
<Argument Name="SellerId" Value="A2PRXGY7GRFPGX" />
<Argument Name="Version" Value="2008-04-07" />
<Argument Name="ResponseGroup" Value="SellerListing" />
<Argument Name="Operation" Value="SellerListingSearch" />
</Arguments>
<RequestProcessingTime>0.206453084945679</RequestProcessingTime>
</OperationRequest>
- <SellerListings>
- <Request>
<IsValid>True</IsValid>
- <SellerListingSearchRequest>
<ListingPage>1</ListingPage>
<ResponseGroup>SellerListing</ResponseGroup>
<SellerId>A2PRXGY7GRFPGX</SellerId>
<Sort>-startdate</Sort>
</SellerListingSearchRequest>
</Request>
<TotalResults>5845</TotalResults>
<TotalPages>585</TotalPages>
- <SellerListing>
<ExchangeId>Y09Y4610358Y3144538</ExchangeId>
<ListingId>0513H546942</ListingId>
<ASIN>B000S5O6WU</ASIN>
<SKU>/hj5357/</SKU>
<WillShipExpedited>0</WillShipExpedited>
<WillShipInternational>1</WillShipInternational>
<Title>Queen Of The Daffodils - A Story of High-School Life [Hardcover] by Leslie...</Title>
- <Price>
<Amount>895</Amount>
<CurrencyCode>GBP</CurrencyCode>
<FormattedPrice>£8.95</FormattedPrice>
</Price>
<StartDate>2008-05-13</StartDate>
<EndDate>2011-04-28</EndDate>
<Status>Open</Status>
<Quantity>1</Quantity>
<Condition>used</Condition>
<SubCondition>acceptable</SubCondition>
- <Seller>
<SellerId>A2PRXGY7GRFPGX</SellerId>
<Nickname>booksgo</Nickname>
</Seller>
</SellerListing>
- <SellerListing>
<ExchangeId>Y09Y0130258Y5553515</ExchangeId>
<ListingId>0513F607845</ListingId>
<ASIN>B000IYXKPA</ASIN>
<SKU>/hn5358/</SKU>
<WillShipExpedited>0</WillShipExpedited>
<WillShipInternational>0</WillShipInternational>
<Title>The Drifting Island [Hardcover] by Wentworth, Walter</Title>
- <Price>
<Amount>595</Amount>
<CurrencyCode>GBP</CurrencyCode>
<FormattedPrice>£5.95</FormattedPrice>
</Price>
<StartDate>2008-05-13</StartDate>
<EndDate>2011-04-28</EndDate>
<Status>Open</Status>
<Quantity>1</Quantity>
<Condition>used</Condition>
<SubCondition>acceptable</SubCondition>
- <Seller>
<SellerId>A2PRXGY7GRFPGX</SellerId>
<Nickname>booksgo</Nickname>
</Seller>
</SellerListing>
- <SellerListing>
<ExchangeId>Y09Y0332249Y0389734</ExchangeId>
<ListingId>0513T157891</ListingId>
<ASIN>B0014MFVXY</ASIN>
<SKU>/hn5357/</SKU>
<WillShipExpedited>0</WillShipExpedited>
<WillShipInternational>1</WillShipInternational>
<Title>The Sunset Express. A story of Canadian railway life, etc [Unknown Binding] by</Title>
- <Price>
<Amount>1495</Amount>
<CurrencyCode>GBP</CurrencyCode>
<FormattedPrice>£14.95</FormattedPrice>
</Price>
<StartDate>2008-05-13</StartDate>
<EndDate>2011-04-28</EndDate>
<Status>Open</Status>
<Quantity>1</Quantity>
<Condition>used</Condition>
<SubCondition>acceptable</SubCondition>
- <Seller>
<SellerId>A2PRXGY7GRFPGX</SellerId>
<Nickname>booksgo</Nickname>
</Seller>
</SellerListing>
I'VE SNIPPED THE OTHERS
</SellerListings>
</SellerListingSearchResponse>
So then I want to take the ASIN value for each item and have it automatically inserted it into this url, where it says ASIN:
http://www.amazon.co.uk/gp/offer-li...?ie=UTF8&seller=A2PRXGY7GRFPGX&tag=booksgo-21
So the end result would be a html page with a list of titles each with a link to its own page on Amazon where I have my description
eg.
1) Queen Of The Daffodils - A Story of High-School Life [Hardcover] by Leslie... l
inked to:http://www.amazon.co.uk/gp/offer-li...?ie=UTF8&seller=A2PRXGY7GRFPGX&tag=booksgo-21
2) The Drifting Island [Hardcover] by Wentworth, Walter
linked to:http://www.amazon.co.uk/gp/offer-li...?ie=UTF8&seller=A2PRXGY7GRFPGX&tag=booksgo-21
3) etc.
Hopefully I've made it clear.
If that is possible, the next hurdle is that Amazon AWS only returns 10 results per page, up to a max. of 500 pages (by changing the &ListingPage= value) ie a max. of 5000 items. As I currently have 5,800+ items that isn't enough, but I think the way round it is to reverse the startdate order which is easy enough, so to get the 5000 oldest items as well as the 5000 newest items which gives me a bit of leeway until I get around to listing 4000 more items, which won't be happening for a while, if ever.
Anyway, I guess it would need a database and PHP - both of which I don't know anything about!
All ideas appreciated, especially if they are expressed in simple language