Thanks, but no success... I still get nope. So, maybe I am doing somethign wrong.
use LWP::Simple; $ENV{HTTP_proxy}="http://10.2.7.11:8080"; #The username that you are looking up print "Please input username: "; $username = <STDIN>; chomp($username); #Gets URL $url = 'http://www.live365.com/cgi-bin/directory.cgi?genre=search&sear +chdesc=' . $username . '&searchfields=H'; print "$url\n"; unless (defined ($page = get($url))) { print "Cannot retrieve page... Sorry =(\n\n"; exit; } #Get Description print "Description: "; if($page =~ m|<A class="desc".*?>(.*?)</A>|) { print "$1\n"; } else{ print "No description\n"; } #Check Profile print "Profile: "; if($page =~ m|<A class="handle".*?>(.*?)</A>|) { print "$1\n"; } else{ print "No profile\n"; } #Connection Speed print "Speed: "; if($page =~ m|<TD ID="connection".*?>(.*?)</TD>|) { print "$1\n"; } else{ print "No connection\n"; } #Number of listeners print "Listeners: "; ($listen,$outof) = (0,0); if($page =~ m|DrawListenerStars("/scp/../images/", (\d+), (\d+))|) {($ +listen,$outof) = ($1,$2);} print "$listen / $outof\n";
This is supposed to check live365.com and return the information of my radio. I know it might see like "Why are you doing this?", but when their web server is so damn slow. It makes it worth not loading their enitre page.
I am the first overweight, very tall munchkin... be very amazed.In reply to Re: Re: LWP::Simple setting a proxy
by thealienz1
in thread LWP::Simple setting a proxy
by thealienz1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |