mIRC Home    About    Download    Register    News    Help

Print Thread
#119124 01/05/05 06:47 PM
B
bloodfog
bloodfog
B
Hello,
I'm working on sockets but I had one problem when I'm trying to get the data inside the tables.

I'm trying to get the table @ www.whois.sc/someip
For example

Hope you got me.
Here is what i got, I just wanted to work on it, but I couldnt somehow take the datas in the yellow table.

Code:
on *:sockopen:whoissc:{ 
  sockwrite -n $sockname GET $+(/,www.mirc.com) HTTP/1.1 
  sockwrite -n $sockname Host: whois.sc $+ $crlf $+ $crlf
}
on *:sockread:whoissc:{
  if ($sockerr) {
    echo -a Error.
    halt
  }
  else {
    var %temptext
    sockread %temptext
    $iif(%temptext,echo -a %temptext)
  }
}
 

#119125 01/05/05 08:24 PM
D
DaveC
DaveC
D
Worked fine for me, I like how the site sends back [email]name@address[/email] as a image so a bot cant scrape them. smile


Link Copied to Clipboard