开发者

Any reference material for fetching search results from retail sites?

If the question hasn't already done so, allow me to flag myself as a relative newcomer to backend programming.

I'm really just wondering if anyone could point me to some literature on how to (for example) 开发者_如何学运维scrape the results of a search for "Die Hard" from amazon.com, and list them on your own page. Thanks in advance.


Is it only Amazon you're trying to deal with?

At any rate, with Amazon your best bet is to use their API, there's a library which makes it all fairly quick and easy to deal with called CloudFusion. Took me about 15 minutes to get usable data out of it when I first used it a few weeks ago and most of that time was spent signing up for Amazon API keys, there's a good tutorial here to get you going.

BestBuy also has an API called ReMix which is apparently decent although I've never used it myself.

If you need to deal with other sites as well I've had good results using PHP Simple HTML Dom Parser but you need to keep an eye on scraping simply beacuse a site redesign will most likely break your parser.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜