Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1024539]
Approved by davido
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-03-20 02:57 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (247 votes). Check out past polls.