Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

LWP wont fetch data for site

by jumpingmonkey (Novice)
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(" +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 (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
Re: LWP wont fetch data for site
by Anonymous Monk on Aug 20, 2013 at 22:42 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1050258]
[karlgoethebier]: My perltidy adds a semicolon after .... How can i avoid this?
[LanX]: ellipse aka ... aka yadda yadda is a new command
[LanX]: sopw!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2017-11-18 18:14 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (277 votes). Check out past polls.