07-22-2018, 18:51 +0200
Search result (5)
All posts by: heartbroken
AuthorPost
Topic: pagerank script (i am trying to make a pagerank script in Turkish language but i can't...need some edit'')   Forum: workimminent problem solving      Goto post
heartbroken  04-07-2012, 10:00
Member since 01/2012
5 Posts
my problem has been solved .. thanks anyway ^^
Topic: pagerank script (i am trying to make a pagerank script in Turkish language but i can't...need some edit'')   Forum: workimminent problem solving      Goto post
heartbroken  04-07-2012, 01:31 | here is my script
Member since 01/2012
5 Posts
package require http

bind pub - !pr pr
proc pr {nick uhost hand chan text} {
  global botnick rank
 if {![string match -nocase "#bum" $chan]} { return }
  set site [lindex $text 0]
  if {$site == ""} {putquick "PRIVMSG $chan :Yanlış yada eksik komut girdiniz. !pr http://site.com ÅŸeklinde olmalı.";return}
   set connect [::http::geturl http://www.sitebilgi.net/]
   set files [::http::data $connect]
   regexp -- {</a></td><td class="sonuc"><span>...(.*?)</span></td>.*?} $files - googlePS
   regexp -- {<td class="sonuc"><span>...(.*?)</span></td>.*?} $files - googleP
   regexp -- {<td class="sonuc"><span>...(.*?)</span></td>.*?} $files - alexaG
   regexp -- {<td class="sonuc"><span>...(.*?)</span></td>.*?} $files - alexaC
   regexp -- {<td class="sonuc"><span>...(.*?)</span></td>.*?} $files - googleB
   regexp -- {<td class="sonuc"><span>...(.*?)</span></td>.*?} $files - gindex
   regexp -- {<td class="sonuc"><span>...(.*?)</span></td>.*?} $files - facebook
   regexp -- {<td class="sonuc"><span>...(.*?)</span></td>.*?} $files - dmoz
   regexp -- {<td class="sonuc"><span>...(.*?)</span></td>.*?} $files - yahooB
   regexp -- {<td class="sonuc"><b><span>...(.*?)</span></b></td>.*?} $files - bingI
  ::http::cleanup $files
 
   putquick "PRIVMSG $chan Google pagerank\0033$googleP:  Alexa Dünya sırası\0033$alexaG:"
   putquick "PRIVMSG $chan Alexa ülke sırası\0033$alexaC:  Google backlink\0033$googleB:"
   putquick "PRIVMSG $chan Google indeksi\0033$googleI:  Facebook'ta paylaşım\0033$facebook:"
   putquick "PRIVMSG $chan DMOZ kaydı\0033$dmoz:  Yahoo indeks\0033$yahooB:"
   putquick "PRIVMSG $chan Sayfa Hızı Skoru\0033$googlePS: Bing indeks sayısı\0033$bingI:"
 }


dunno why but i cant copied code in to my first post
Topic: pagerank script (i am trying to make a pagerank script in Turkish language but i can't...need some edit'')   Forum: workimminent problem solving      Goto post
heartbroken  04-07-2012, 01:29 | pagerank script
Member since 01/2012
5 Posts
hi
i am trying to make a pagerank script this is my first attemp to get data from web ..i tried many tricks on this but i couldnt make it..

i realy need your help for this b-cus i gave up … i've check it many that kinda scripts and i'd try to make somethings similar on this ..but i dont have any expreince about coding .i've just trying to do somethings and trying to learn tcl coding..but i guess this was too much for me..

i will be thankful for all type of help about this code.

http://paste.tclhelp.net/?id=asr

Something failed while rendering code in this thread, please inform #tcl on QuakeNet. Thank you.
bot said "can't read veriable"  i thought i did somethings wrong.but i couldnt fix it...can someone fix this please ?   thanks..

(code tags not working on this page ? ) i've just added the tcl code in code'' tags but not post it on here ? )
my best regards...
This post was edited 1 times, last on 04-07-2012, 01:34 by heartbroken
Topic: [EGG] Random line from a file   Forum: #tclcode snippets      Goto post
heartbroken  01-15-2012, 12:39 | hey
Member since 01/2012
5 Posts
hi

/me Thanks to you CyBex :)
Topic: [EGG] Random line from a file   Forum: #tclcode snippets      Goto post
heartbroken  01-11-2012, 18:21 | re
Member since 01/2012
5 Posts
hi

thommey i've seen these kinda random reader codes before but i wonder how a code read within a txt file line by line .not random...

can you show an example code for about this please.
for an example if i want my bot posts a poem in poems.txt,bot should be post this line by line on channel how its possible to creat a code for that.
This post was edited 1 times, last on 01-11-2012, 18:23 by heartbroken
Go to forum
Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen | Time: 266.1 msec, CPU time: 78.4 msec, 43 Database queries in 156.4 msec | 4.2 kB (19.7 kB) | Timezone: +0200