Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing a C# program that scans ecommerce website and extracts products pictures + prices + description from them

I'm developing an ecommerce search engine that allows you to search for products in a lot of ecommerce websites.

How do I approach the matter?

I need an application that will be able to scan websites, parse their HTML and determine which of the images in the website are product images, which are product descriptions, which are product prices.

Would be happy to hear any idea, example.

Thanks in advance.

edit: My question is not how to get the HTML from the websites(which is called screen scraping) but more on how to parse that information and understand which of the html contains the actual data i am looking for, and which is not.

like image 536
Eytan Levit Avatar asked Dec 02 '25 22:12

Eytan Levit


2 Answers

You may find this thread helpful in your quest. I had outlined the basic steps there. Here's the link to all questions tagged as "Screen-scraping" on SO. Also, lots of material on the web - Google.

like image 54
Cerebrus Avatar answered Dec 05 '25 11:12

Cerebrus


Most of the sites you'd be scraping (more correctly web-scraping) have partner APIs for "reseller" type deals. For you to circumvent that with screen scraping will quickly find your IP blocked by their traffic servers, and potentially put you in a legal situation.

This is ethically dubious at best.

like image 40
annakata Avatar answered Dec 05 '25 12:12

annakata



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!