Solved

Pulling product data from ANY website

Posted on 2014-04-03
5
335 Views
Last Modified: 2014-04-22
A client has approached me and wants to create a tool similar to amazons wish list.

Basically, you browse to a website page, add the URL to the tool, and the tool scrapes the website to extract the product name, image, price etc.

Scraping isn't really an issue here, however the client wants it to pull product data from almost any website, which I'm struggling to figure out how to do as each website has a different structure to its HTML.

I'm guessing amazons wish list is using some kind of AI that's been trained to accurately determine which data on the page it needs.

I'm thinking this is a huge task for a single developer, but wondered if I was maybe overthinking this and if there was already a solution available?
0
Comment
Question by:SheppardDigital
  • 2
  • 2
5 Comments
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39975223
Amazon's wish list is a huge task even for Amazon's hundreds of developers.

Try this Google search: https://www.google.com/?q=wish+list+maker

One problem you may encounter (and it will become more prevalent over time) is that many sites do not publish product information in HTML any more.  They use a placeholder and use jQuery/ AJAX to load the information directly into the DOM.  The reason for doing this is to prevent 'bots from scraping data out of their HTML.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39975315
Some easy options....

You could use pintrest api's and perhaps capture peoples pins by having your app send to a special user's pinboard called "wish list".  Then you can grab that wish list via the user id and board id through xml.

Limit to whatever is on one api like amazon http://docs.aws.amazon.com/AWSECommerceService/latest/DG/CHAP_FindingItemstoBuy.html  and build your app around that.
0
 

Accepted Solution

by:
SheppardDigital earned 0 total points
ID: 40008364
Hi, it seems my client has found a third party API where you provide it with a URL and it will return the product information for you.

The service found was http://www.diffbot.com/
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 40008566
If your client is happy, we're happy.  But I would test that service very, very carefully (and check the terms of use) before I relied on it for more than hobby applications.
0
 

Author Closing Comment

by:SheppardDigital
ID: 40014355
This was the more suited answer
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question