Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

web scrapping

by ansh batra (Friar)
on Mar 20, 2013 at 15:20 UTC ( #1024539=perlquestion: print w/replies, xml ) Need Help??
ansh batra has asked for the wisdom of the Perl Monks concerning the following question:

hi monks
i need to scrap website which have several links to be navigated
now the problem is that those links are ajax binded i.e they dont actually contain any url

<a onclick="new Ajax.Updater('reviews-list', '/rate-and-review/repagin +ate?product_type=home_loans&amp;provider=6', {asynchronous:true, eval +Scripts:true, method:'get', parameters:'page=2'}); return false;" hre +f="#">2</a>
i am using www::mechanize , please tell me how should i proceed

Replies are listed 'Best First'.
Re: web scrapping
by Corion (Pope) on Mar 20, 2013 at 15:21 UTC
Re: web scrapping
by marto (Bishop) on Mar 20, 2013 at 15:23 UTC

    You read the part of the WWW::Mechnize docuemntation where it tells you that it doesn't support JavaScript, then read the FAQ. You contact the site owner, chances are if they want you to have access to their data they'll provide an API to do so.