Code: Select all
<~tomek> http://fishki.net/comment.php?id=20554
<+Nekomimi> URL Title: Неприятности случаются везде (20 фото) - Fishki.Net | Фишкина картинка
Code: Select all
<~tomek> http://fishki.net/comment.php?id=20554
<+Nekomimi> Tytul: Íåïðèÿòíîñòè ñëó÷àþòñÿ âåçäå (20 ôîòî) - Fishki.Net | Ôèøêèíà êàðòèíêà
Code: Select all
<~tomek> http://i.huffpost.com/gadgets/slideshows/193500/slide_193500_409426_large.jpg
<+Nekomimi> Tytul: Unable to retrieve title for http://i.huffpost.com/gadgets/slideshows/193500/slide_193500_409426_large.jpg
you didn't update your githublee8oi wrote:Update for v0.2
3.Added a utf-8 fix. Appears to work correctly on bots with and without the utf-8 hack/patch found on http://eggwiki.org/Utf-8
Code: Select all
<speechl3s> !webby http://fishki.net/comment.php?id=20554
<sp33chy> Íåïðèÿòíîñòè ñëó÷àþòñÿ âåçäå (20 ôîòî) - Fishki.Net | Ôèøêèíà êàðòèíêà ( http://is.gd/aZpbBM )( 200; text/html; cp1251; 76204 bytes )
<sp33chy> Íåïðèÿòíîñòè ñëó÷àþòñÿ âåçäå (20 ôîòî) - Ôèøêè.ÍÅÒ - Ñàéò Õîðîøåãî Íàñòðîåíèÿ!
Code: Select all
catch {exec $urltitle(curlpath) -U "tcluser:anonymous" --location --max-redirs \
$urltitle(maxdirs) --connect-timeout $urltitle(timeout) --max-time \
$urltitle(maxtime) --insecure "$url"} html
...
return [htmlparse::mapEscapes $title]
this update broke it even more:lee8oi wrote:lol whoops. hehe. Well thats ok. I have another update to add AND github is updatedAnahel wrote:you didn't update your githublee8oi wrote:Update for v0.2
3.Added a utf-8 fix. Appears to work correctly on bots with and without the utf-8 hack/patch found on http://eggwiki.org/Utf-8
4.Added ignore system. Patterns can be added in the configuration section. urls are compared to the patterns to determin wether to ignore the url or retrieve title.
Code: Select all
<~tomek> http://fishki.net/comment.php?id=20554
<+Nekomimi> URL Title: ÃåïðèÿòÃîñòè ñëó÷à þòñÿ âåçäå (20 ôîòî) - Fishki.Net | ÔèøêèÃà êà ðòèÃêÃ
<~tomek> http://www.nicovideo.jp/video_top
<+Nekomimi> URL Title: ニコニコ動画(原宿)
wait, then collaboration is in place. Because notice "webby" and it's reply? Pretty much isn't readable russian. When it can be...lee8oi wrote:ok. Thanks speechles. Great words of wisdom. Right now I'm mostly just experimenting. I'll take another look at 0.1 and work with the http package and figure things out. I did poke around in webby some but I'm not quite advanced enough to sort that mess out. I liked 'urltitle' because it gave me a simpler starting point to work from. Easier to wrap my head around whats happening. But thanks again for your heads up. Its probably a good time to scrap what I have so far before I find myself dissappointed later. This script isn't being submitted to the archive anyways. So no big loss. Just a learning experience. Forgive me if my next attempt seems lazy too....
Code: Select all
set text [encoding convertto "utf-8" [encoding convertfrom cp-1251 $text] $text]
I would certainly love to work with you. When I use:speechles wrote:wait, then collaboration is in place. Because notice "webby" and it's reply? Pretty much isn't readable russian. When it can be...lee8oi wrote:ok. Thanks speechles. Great words of wisdom. Right now I'm mostly just experimenting. I'll take another look at 0.1 and work with the http package and figure things out. I did poke around in webby some but I'm not quite advanced enough to sort that mess out. I liked 'urltitle' because it gave me a simpler starting point to work from. Easier to wrap my head around whats happening. But thanks again for your heads up. Its probably a good time to scrap what I have so far before I find myself dissappointed later. This script isn't being submitted to the archive anyways. So no big loss. Just a learning experience. Forgive me if my next attempt seems lazy too....
And lazy means, that you aren't learning core items tcl offers. http package within tcl is more powerful than cURL could ever hope to be. Expecting "curl" to be available on every system eggdrop is on, will add comments to your thread here on egghelp. Those comments consisting of mostly, where do I get curl for windows? or for .. <insert os here>? It just adds another complexity and dynamic that you hop-skip past. So it is hurting you, your scripts. More than the users. It shows that you know how to walk and run in tcl. But you lack the skills to build a bike, or a car.
There are ways to get there. I just haven't had the time to test it. This Thursday and Friday I have some days off from my real-life full time job. At that point get together with me, here or via iRC and we can help each other. Webby can detect charset conflicts and reports charset it detected for just this reason. So that I could one day, find a reason to fix it. ICode: Select all
set text [encoding convertto [encoding convertfrom cp-1251 $text] $text]
Code: Select all
set urtitle [encoding convertto utf-8 $urtitle]
Code: Select all
set urtitle [encoding convertto utf-8 $urtitle]