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

LWP wont fetch data for site

by jumpingmonkey (Novice)
on Aug 20, 2013 at 22:25 UTC ( [id://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"; }

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-24 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found