Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

LWP wont fetch data for site

by jumpingmonkey (Initiate)
on Aug 20, 2013 at 22:25 UTC ( #1050258=perlquestion: print w/ replies, xml ) Need Help??
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"; }

Comment on LWP wont fetch data for site
Download Code
Re: LWP wont fetch data for site
by Anonymous Monk on Aug 20, 2013 at 22:42 UTC
Re: LWP wont fetch data for site
by 2teez (Priest) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1050258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-04-17 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (441 votes), past polls