mIRC Home    About    Download    Register    News    Help

Print Thread
Socket help #119124
01/05/05 06:47 PM
01/05/05 06:47 PM
Joined: Apr 2005
Posts: 9
B
bloodfog Offline OP
Nutrimatic drinks dispenser
bloodfog  Offline OP
Nutrimatic drinks dispenser
B

Joined: Apr 2005
Posts: 9
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)
  }
}
 

Re: Socket help #119125
01/05/05 08:24 PM
01/05/05 08:24 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
DaveC  Offline
Hoopy frood
D

Joined: Sep 2003
Posts: 4,230
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