mIRC Home    About    Download    Register    News    Help

Print Thread
#109873 02/02/05 11:14 AM
Joined: Jan 2005
Posts: 4
X
xmb Offline OP
Self-satisified door
OP Offline
Self-satisified door
X
Joined: Jan 2005
Posts: 4
I'm having problem with getting information from website.
For example, if content-limit is under 300, it will get the result.
Otherwise when it's over 300, then it won't give me no results at all.

Theres just text in this webpage.

Any ideas how to fix this problem?

#109874 03/02/05 07:06 AM
Joined: Dec 2002
Posts: 15
I
idk Offline
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 15
show the code

#109875 04/02/05 04:10 PM
Joined: Jan 2005
Posts: 4
X
xmb Offline OP
Self-satisified door
OP Offline
Self-satisified door
X
Joined: Jan 2005
Posts: 4
Quote:
show the code


Code:
 on 1:text:<eng *:%kanal15: {
  if (!$2) { .timertranslateERR 1 2 msg $chan Syntax error. | halt }
  if ($sock(translate) != $null) { /.timersockinuse 1 3 notice $nick Sinu poolt sooritatud päringut ei saa hetkel teostada, proovi mõne hetke pärast uuesti. | halt }  
  unset %word*
  set -n %word.chan #
  set -n %word $2
  sockopen translate mycroft.pri.ee 80

}

on *:sockopen:translate:{ sockwrite -n $sockname GET /stuff/dict.php?lang=en&query= $+ %word HTTP/1.0 | sockwrite -n $sockname Host: mycroft.pri.ee | sockwrite -n $sockname $chr(13) $+ $chr(10) }
on *:sockread:translate:{
  if ($sockerr > 0) return
  sockread -fn 4096 %x.src
  if ($sockbr == 0) return

  if (Teie isin %x.src) && (otsingule isin %x.src) && (vastet. isin %x.src) {
    .timerwordsendout 1 2 msg %word.chan %word => Teie otsingule ei leitud kahjuks vastet. | halt
  }
  elseif (%word isin %x.src) {
    .timerwordsendout 1 2 msg %word.chan %word => %x.src
  }
}

 

#109876 05/02/05 10:49 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
sockread -fn 4096 %x.src

You are not reading into a binary variable for a start, thats got to cause problems.


Link Copied to Clipboard