Reputation: 164
I'm creating a website which will fetch product details from different eCommerce websites and will show a comparison chart on my site. Is that possible to fetch the datas from other sites & display it on my website using Perl LWP module?
Upvotes: 0
Views: 109
Reputation: 123320
Yes it is possible, but the details depend heavily how the data are served by the other sites. Especially if the other sites are created with JavaScript (e.g. on the client side) it will be hard. Also, WWW::Mechanize (which is a layer on top LWP) might be easier to use for this task or you might have a look at Mojo::UserAgent which has a comfortable way of extracting information by using a DOM model with CSS-like specifiers.
Upvotes: 2