| View previous topic :: View next topic |
| Author |
Message |
username Op

Joined: 06 Oct 2005 Posts: 196 Location: Russian Federation, Podolsk
|
Posted: Sun Oct 31, 2010 4:17 pm Post subject: etitle.tcl - Easy title TCL script. |
|
|
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:
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 |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Sun Oct 31, 2010 4:33 pm Post subject: |
|
|
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: | [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  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
username Op

Joined: 06 Oct 2005 Posts: 196 Location: Russian Federation, Podolsk
|
Posted: Mon Nov 01, 2010 9:45 am Post subject: |
|
|
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 |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Mon Nov 01, 2010 10:07 am Post subject: |
|
|
way better in my opinion..
and more useful  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
Mindless999 Voice
Joined: 12 Jan 2011 Posts: 1
|
Posted: Wed Jan 12, 2011 7:07 pm Post subject: |
|
|
| If it is possible, I would like to have the english version of the script |
|
| Back to top |
|
 |
username Op

Joined: 06 Oct 2005 Posts: 196 Location: Russian Federation, Podolsk
|
Posted: Thu Jan 13, 2011 3:54 pm Post subject: |
|
|
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 |
|
 |
Anahel Halfop

Joined: 03 Jul 2009 Posts: 48 Location: Dom!
|
Posted: Thu Jan 13, 2011 5:17 pm Post subject: |
|
|
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.): TonyCXgvgm[gp\R - BTOp\REp\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 |
|
 |
username Op

Joined: 06 Oct 2005 Posts: 196 Location: Russian Federation, Podolsk
|
Posted: Fri Jan 14, 2011 3:14 am Post subject: |
|
|
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 |
|
 |
|