Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 musing on the Monastery: (8)
As of 2014-08-20 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (112 votes), past polls