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 

URL Title grabber
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Jan 14, 2008 6:24 am    Post subject: Reply with quote

I'd change the returns to just 'return' and not 'return ""'

Not much I can to do debug if I can't duplicate the problem. Put some "putcmdlog" lines in the procs so you can see the steps being taken.
Back to top
View user's profile Send private message
weezel
Voice


Joined: 07 Oct 2010
Posts: 3

PostPosted: Thu Oct 07, 2010 11:46 pm    Post subject: Reply with quote

just started using this a few months ago, and whenever it grabs a youtube title, it does this:

[04:41:01] <~weezel> http://www.youtube.com/watch?v=0jhu7ux4whs&feature=related
[04:41:06] <@BusBot> weezel's Youtube Title: "14 Undestructable by Gogol Bordello"
[04:41:07] <@BusBot> weezel: URL Title - } { YouTube} { - 14 Undestructable by Gogol Bordello} {

the first line from busbot is just a youtube script. the second is yours, but i couldnt find how i might get it to just plain ignore youtube urls.

also, changing

bind pubm $urltitle(pubmflags) {*://*} pubm:urltitle

how might i add more than just "://" ? for example i'd want it to ignore image extensions or any extension other than .html .php .asp and a few others. will multiple of that line work ? or do i have to put into that single line the things i want it to report on?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Oct 08, 2010 1:17 am    Post subject: Reply with quote

Add an "if" type statement,

if [string match *youtube*];#ignore

or something to that effect. It's been several years(?) since I messed with tcl & eggdrop so I don't remember the exact syntax, I suggest you RTFM Smile
Back to top
View user's profile Send private message
Mysticales
Voice


Joined: 18 Oct 2011
Posts: 26

PostPosted: Tue Oct 18, 2011 5:47 pm    Post subject: Reply with quote

rosc2112 wrote:
Change the pubm bind's mask to be more specific, eg:

bind pubm $urltitle(pubmflags) {*://*.htm?} pubm:urltitle

should work.


Hello, just tried this, however that didnt work for me. Unless I am doing something wrong? Also would the above still work for php urls?

But yea, really trying to make it do 2 things:
1: Not show up for images.
2: Delete the url from being repeated when it responds. (Granted looking into that right now in the code)

Edit: Ok fixed #2
Changed
puthelp "PRIVMSG $chan :$nick: URL Title for $word - \002$urtitle\002"
to
puthelp "PRIVMSG $chan :\002$urtitle\002"

Gets a lil too spammy if it just repeats the url that the person just said.

Still cant fix the image thing to prevent that from showing up results..

Edit2: Fixed the image thing, Just remove the words "No title found" so the script returns nothing. Sloppy fix, but it works. No more parsing of image urls.
_________________
~Battlez-avec la Mystique?~
Back to top
View user's profile Send private message
FightingNavyman
Voice


Joined: 18 Jan 2011
Posts: 35

PostPosted: Sat Nov 05, 2011 12:32 am    Post subject: o.o Reply with quote

the link isnt working anymore Sad
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Nov 05, 2011 12:40 am    Post subject: Re: o.o Reply with quote

FightingNavyman wrote:
the link isnt working anymore Sad


Good. This script is broken. It doesn't handle encodings or character sets correctly....

Instead.. Use a script that does work:
--> Durby
It's based off Webby. Since it's Webby based this means it correctly handles character sets, http versions, patched or unpatched bots, etc, etc.. This is the url grabbing script you should be using...
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Mysticales
Voice


Joined: 18 Oct 2011
Posts: 26

PostPosted: Mon Nov 07, 2011 11:57 am    Post subject: Reply with quote

Fixed my #1 issue too. Sloppy fix, but it works.

Code:
      if {[regexp -nocase {<title>(.*?)</title>} $data match title]} {
         return [string map { {href=} "" \" "" } $title]
      } else {
         return
      }
   }
}

putlog "Url Title Grabber $urltitlever (rosc) script loaded.."


Its at the end, basically removed the whole "Return" response. Since whats the point of it saying there is no url title. No longer responds to picture images. =)

As for it being broken.. I dont know, I mean I get some glitches on it sure. But it works fine enough.

Also That Durby is an Unstable script right now, seems to be down. I could upload this file if needed for the urltitle one if needed?
_________________
~Battlez-avec la Mystique?~
Back to top
View user's profile Send private message
prashant
Voice


Joined: 10 Jan 2014
Posts: 11
Location: irc.rizon.net ~ #pd

PostPosted: Sat Jan 11, 2014 7:43 am    Post subject: Reply with quote

i need this Script! AnyOne Have working Script - Please Provide - Mirror Link & New Link of this Nick Script Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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