Kod: Kodu kopyalamak için üzerine çift tıklayın!
on *:text:*:#bot: {
if $chan == #bot {
if $regex($1,/([.!]ara)/Si) {
if !$2 || !$3 { .msg $chan Lütfen ".sira
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
kelime" şeklinde arama yapınız. | return }
var %rand $rand(0,99999)
sockopen $+(google,%rand)
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
80
sockmark $+(google,%rand) $3-
.msg $chan 4 $2 2sitesi4 $3- 2kelimesine göre inceleniyor, bekleyiniz.
.hadd -m google web $+(http://,$2)
.hadd -m google kelime $3-
}
}
}
on $*:sockopen:/^google/i: {
sockwrite -n $sockname GET $+(/search?num=100&q=,$replace($sock($sockname).mark,$chr(32),+),&hl=tr&gbv=2) HTTP/1.1
sockwrite -n $sockname Host:
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
sockwrite -n $sockname $crlf
}
on $*:sockread:/^google/i: {
var %2 | sockread %2
if (*ile ilgili hiçbir arama sonucu* iswm %2) {
.msg #bot 2Belirtiginiz4 $sock($sockname).mark 2kelimesi 4google2 üzerinde link almamıştır.
sockclose $sockname
hfree -sw googlearama
hfree -sw google
return
}
if (class="r"><a href="/url?q isin %2) {
_google $sockname %2
}
if (Google\u0026#39;da isin %2) {
if $hget(googlearama) {
var %x 1
while $hget(googlearama,%x).item {
if ($hget(google,web) isin $v1) {
.msg #bot 4Sorgulanan domain: $hget(google,web)
.msg #bot 4Sorgulanan kelime: $hget(google,kelime)
.msg #bot 4Google : $siralama($hget(googlearama,$v2))
.msg #bot 2Google uzerinde ilk4 100 2sirada4 $hget(google,kelime) 2kelimesiyle4 $hget(googlearama,%x).item 2link'iyle index almistir.
.msg #bot -
hinc -m google bulunan 1
}
inc %x
}
if $hget(google,bulunan) {
.msg #bot *** 2Google uzerinde ilk4 100 2sirada4 $hget(google,web) 2 web adresi4 $hget(google,kelime) 2 kelimesiyle6 $hget(google,bulunan) 2 kere index almistir.
hfree -sw googlearama
hfree -sw google
sockclose $sockname
return
}
}
.msg #bot 2Belirtilen 4 $hget(google,web) 2adresi4 $hget(google,kelime) 2kelimesinde ilk4 100 2 sitede yer almamaktadir.
sockclose $sockname
hfree -sw googlearama
hfree -sw google
}
}
alias _google {
var %x 1
while $pos($2-,class="r"><a href="/url?q=http:,%x) {
var %web $token($token($mid($2-,$v1,300),4,61),1,38)
if (google !isin %web) {
hinc -m google inc 1
hadd -m googlearama %web $hget(google,inc)
}
inc %x
}
}
alias siralama {
if ($gettok($calc($gettok($1,1,46) / 10),2,46) / 10),2,46) == $null) { return $gettok($calc($gettok($1,1,46) / 10),1,46) Sayfa $gettok($1,2,46) Sirada | halt }
return $calc($gettok($calc($1 / 10),1,46) +1) Sayfa $iif(!$gettok($calc($1 / 10),2,46),1,$gettok($calc($1 / 10),2,46)) Sirada
}