egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

etitle.tcl - Easy title TCL script.

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
username
Op


Joined: 06 Oct 2005
Posts: 196
Location: Russian Federation, Podolsk

PostPosted: Sun Oct 31, 2010 4:17 pm    Post subject: etitle.tcl - Easy title TCL script. Reply with quote

This script show titles of webpages with charset and execution time.

Setup part translation:
Code:
###                            ###
# Setup part under this line: #
# ______________________________ #
###                            ###

      # Время перед повторным использованием команды.
      # Seconds before next request.
      set etitle(delay) 5

      # Список ников чьи урлы обрабатываться не будут.
      # List of ignored nicks.
      set etitle(denynicks) "lamestbot quiz info"

      # Используем TinyURL сокращение. Урлы длиннее этого числа будут сокращаться.
      # Script will use TinyUrl if URL is longer than this number.
      set etitle(tinyurl) 50

      ###
      # Настройка цветов.
      # Colours setup.

      # Цвет 1.
      set etitle(color1) \00314
      # Цвет 2.
      set etitle(color2) \00303
      # Цвет 3.
      set etitle(color3) \00305
      ###

###                                                                  ###
# Code under this line, dont change it: #
# ____________________________________________________________________ #
###                                                                  ###


Works like this:
Quote:
<@tvrsh> http://www.egghelp.org
<+bionic> Title(Charset: Unknown, Time: 1.284сек.): egghelp.org
<@tvrsh> http://www.egghelp.ru
<+bionic> Title(Charset: windows-1251, Time: 350.685мс.): Главная - EGGHELP.RU - TCL скрипты для Eggdrop/Windrop
<@tvrsh> http://www.youtube.com/user/spithash
<+bionic> Title(Charset: Unknown, Time: 1.047сек.): YouTube - Канал пользователя spithash
<@tvrsh> http://www.gutenberg.org/files/13650/13650-h/images/383.gif
<+Info> Title(iso8859-1 / 1.886сек. / http://tinyurl.com/6d2g3db ): Image (image/gif). Size: 5.738Kb.


Last update: 13.01.2011

Download page: here

If you would interest in this script I will do full english translation.
Comments, requests are welcome.
_________________
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/


Last edited by username on Fri Jan 14, 2011 2:23 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Sun Oct 31, 2010 4:33 pm    Post subject: Reply with quote

it would be awesome if you translate it, yes Smile

it's really great...

I got one that shortens the url and reads titles at the same time, if you could make it the same, it will be WAY more useful.. Smile

it works like this:

Code:
[22:32:30] <@spithash> www.egghelp.org
[22:32:33] <@nagger> http://xrl.us/kd5o -> egghelp.org (11893 bytes)
[22:32:50] <@spithash> www.youtube.com/user/spithash
[22:32:54] <@nagger> http://xrl.us/bh6avm -> YouTube        - spithash's Channel (91546 bytes)



*EDIT*
it also informs that it's a picture or text etc...

Code:
[22:34:31] <@spithash> http://www.egghelp.org/images/eggman.gif
[22:34:33] <@nagger> http://xrl.us/bh6avq -> non html (image/gif) (17856 bytes)
[22:35:50] <@spithash> http://github.com/horgh/eggdrop-scripts/raw/master/slang.tcl
[22:35:52] <@nagger> http://xrl.us/bh6avs -> non html ({text/plain; charset=utf-8}) (3645 bytes)


in case you are wondering, it's leprechau's tinyurl tcl

he stopped caring I guess but I still use it cause it's awesome and very useful Smile
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
username
Op


Joined: 06 Oct 2005
Posts: 196
Location: Russian Federation, Podolsk

PostPosted: Mon Nov 01, 2010 9:45 am    Post subject: Reply with quote

Added TinyURL shortening.
Quote:
<@tvrsh> http://www.egghelp.org/
<+bionic> Title(Charset: Unknown, Time: 691.253мс., TinyURL: http://tinyurl.com/6j9pr ): egghelp.org

_________________
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
Back to top
View user's profile Send private message Send e-mail Visit poster's website
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Mon Nov 01, 2010 10:07 am    Post subject: Reply with quote

way better in my opinion.. Smile
and more useful Surprised
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Mindless999
Voice


Joined: 12 Jan 2011
Posts: 1

PostPosted: Wed Jan 12, 2011 7:07 pm    Post subject: Reply with quote

If it is possible, I would like to have the english version of the script
Back to top
View user's profile Send private message
username
Op


Joined: 06 Oct 2005
Posts: 196
Location: Russian Federation, Podolsk

PostPosted: Thu Jan 13, 2011 3:54 pm    Post subject: Reply with quote

A did little translation of setup part.
+ works with redirects
+show size of img/video/audio/other files
+ improve TinyUrl shortening from some script from here.
_________________
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anahel
Halfop


Joined: 03 Jul 2009
Posts: 48
Location: Dom!

PostPosted: Thu Jan 13, 2011 5:17 pm    Post subject: Reply with quote

test link : http://www.twotop.co.jp/vn_tony/ < japanese

Code:
[21:57:56] <~tomek> http://www.twotop.co.jp/vn_tony/
[21:58:02] <+Nekomimi> Title(ShIft_jis / 4.495.): TonyŽ‚”—ƒCƒ‰ƒXƒg‚ƒvƒŠƒ“ƒg‚‚‚ƒm[ƒgƒpƒ\ƒRƒ“ - BTOƒpƒ\ƒRƒ“EŽƒpƒ\ƒRƒ“ ƒp[ƒc’” TWOTOP Internet Shop


this should look like that:

Code:
Tony氏の美麗イラストがプリントされたノートパソコン - BTOパソコン・自作パソコン パーツ通販 TWOTOP Internet Shop:


2nd test link: http://psp-team.pl/newsy/zaplanowano-drug%C4%85-tur%C4%99-dodatk%C3%B3w-metal-gear-solid-dla-mhp-3rd-11297 < polish

Code:
[22:04:51] <~tomek> http://psp-team.pl/newsy/zaplanowano-drug%C4%85-tur%C4%99-dodatk%C3%B3w-metal-gear-solid-dla-mhp-3rd-11297
[22:05:05] <+Nekomimi> Title(utf-8 / 858.107.): Zaplanowano drug? tur? dodatk?w Metal Gear Solid dla MHP 3rd | PSP-team


Code:
Zaplanowano drugą turę dodatkw Metal Gear Solid dla MHP 3rd | PSP-team:


is it possible to fix this? (my bot is patched to use utf-8 and i never had any problem with it)

and btw, could you save your script as utf-8, you save it as asci as i dont see any cyrylic characters there

Code:
# ńňŕęŕ:
#         1. Ńęďčđňĺ ńęđčďň etitle.tcl ďŕďę scripts ŕřĺă ňŕ.
#         2. ŕĺ eggdrop.conf ďčřčňĺ ńňđę source scripts/etitle.tcl
#         3. Ńĺŕňĺ .rehash ň.


i know some russian and could do some translation myself but i cant because of asci.
Back to top
View user's profile Send private message
username
Op


Joined: 06 Oct 2005
Posts: 196
Location: Russian Federation, Podolsk

PostPosted: Fri Jan 14, 2011 3:14 am    Post subject: Reply with quote

I update it alittle.
Sorry, but I dont know how to add to script nonlatin and noncyrillic support. Maybe it depends of locale or something else?
_________________
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber