This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

etitle.tcl - Easy title TCL script.

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

etitle.tcl - Easy title TCL script.

Post by username »

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

Setup part translation:

Code: Select all

###                            ###
# 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:
<@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/13 ... es/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.
Last edited by username on Fri Jan 14, 2011 2:23 am, edited 2 times in total.
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

it would be awesome if you translate it, yes :)

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.. :)

it works like this:

Code: Select all

[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: Select all

[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 :)
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

Added TinyURL shortening.
<@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/
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

way better in my opinion.. :)
and more useful :o
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
M
Mindless999
Voice
Posts: 1
Joined: Wed Jan 12, 2011 7:06 pm

Post by Mindless999 »

If it is possible, I would like to have the english version of the script
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

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/
User avatar
Anahel
Halfop
Posts: 48
Joined: Fri Jul 03, 2009 6:18 pm
Location: Dom!

Post by Anahel »

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

Code: Select all

[21:57:56] <~tomek> http://www.twotop.co.jp/vn_tony/
[21:58:02] <+Nekomimi> Title(ShIft_jis / 4.495ñåê.): Tony&#142;&#130;Ì&#148;ü&#151;í&#131;C&#131;&#137;&#131;X&#131;g&#130;ª&#131;v&#131;&#138;&#131;&#147;&#131;g&#130;³&#130;ê&#130;½&#131;m[&#131;g&#131;p&#131;\&#131;R&#131;&#147; - BTO&#131;p&#131;\&#131;R&#131;&#147;E&#142;©ì&#131;p&#131;\&#131;R&#131;&#147; &#131;p[&#131;c&#146;Ê&#148;Ì TWOTOP Internet Shop
this should look like that:

Code: Select all

Tony氏の美麗イラストがプリントされたノートパソコン - BTOパソコン・自作パソコン パーツ通販 TWOTOP Internet Shop:
2nd test link: http://psp-team.pl/newsy/zaplanowano-dr ... -3rd-11297 < polish

Code: Select all

[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: Select all

Zaplanowano drugą turę dodatków 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: Select all

# Óńňŕíîâęŕ: 
#         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.
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

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/
Post Reply