jumpingmonkey has asked for the wisdom of the Perl Monks concerning the following question:

Code does not work for this site. Any idea why? How do I fetch data from this site? Thanks in advance Another Monkey
!/usr/bin/perl use LWP::Simple; @content = get("http://www.magicbricks.com/Property-Rates- +Trends/Multistorey-Apartment-rates-Viman-Nagar-in-Pune"); chomp @content; foreach (@content) { print "Hello $_\n"; }

Replies are listed 'Best First'.
Re: LWP wont fetch data for site
by 2teez (Vicar) on Aug 21, 2013 at 00:18 UTC

    Hi jumpingmonkey,

    Any idea why? How do I fetch data from this site?
    Which data actually? Because there are several ON the web page you sited.
    Also use <code></code> to format your codes.
    Going through How do I post a question effectively? will also be of great benefit.
    Welcome to the Monastery.

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me
Re: LWP wont fetch data for site
by Anonymous Monk on Aug 20, 2013 at 22:42 UTC