Top

YouTube Video Searcher

Please Register to submit score.
Average Score  9.5
Scores Submitted  14
Date Added  Feb 29, 2008
Last Updated  Jul 09, 2008
Tags  search  searcher  sock  socket  sockets  tube  video  videos  watch  you  youtube 

Introduction

This here is a YouTube video searcher. It returns the first three videos of your search result.

It returns the Title, Date Added, User, Length, Views, Rating, and URL for each video.

Syntax: [!YouTube | /YouTube] [Search Criteria]

If you want to change how many videos it returns, you can change "if (%n. [ $+ [ $sockname ] ] >= 3) {" to whatever number of videos you want it to return.

Here's some screens:





Enjoy

Grab the Code

Comments

  (63)  RSS
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 4:37 pm
Enjoy
napa182
Comments: 797
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 4:53 pm
nice work mountaindew.
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 4:57 pm
Thanks napa
water_dragon
Comments: 44
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 5:34 pm
it aint working for me...

--------------------------------------------------------------------

«23:32:22» <Dragon> !youtube linkin park in the end
«23:32:23» * CraigsBot searches for YouTube videos matching "linkin park in the end"...

--------------------------------------------------------------------

and nothin else Turns up after is there a certain mirc it works on mines 6.21..
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 5:53 pm
:|

I also use 6.21, and I got
Quote:

[mtn] !youtube linkin park in the end
* MountainDew searches for YouTube videos matching "linkin park in the end"...
<MountainDew> • Title: Linkin Park - In The End Added: 1 year ago User: warnerbrosrecords Length: 03:37 Views: 798,028 Rating: 4.5/5 URL: http://www.youtube.com/watch?v=Bax8FqBECd0
<MountainDew> • Title: Linkin Park - In The End Added: 1 year ago User: linkinparktv Length: 03:37 Views: 12,528,674 Rating: 4/5 URL: http://www.youtube.com/watch?v=oIwWqYSbzGA
<MountainDew> • Title: Chipmunks: In the End by Linkin Park Added: 2 months ago User: ChipmunkNation Length: 03:35 Views: 345,391 Rating: 4.5/5 URL: http://www.youtube.com/watch?v=Yp5O8Koe_A4


water_dragon, what server/channel are you on?
Jamiie
Comments: 101
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 6:25 pm
Nice script Mountaindew, I was planning on writing a youtube search script but I found one :P... I'm not good with sockets so yeah lol


You got a 10/10 from me ^.^
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 6:29 pm
:o

Thanks Jamiie!
napa182
Comments: 797
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 6:30 pm
water_dragon you may have a conflicting socket script
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 6:33 pm
at the top of the sockread, try adding "echo -a $sockerr" and if nothing comes up, try "echo -a %x" after "sockread %x"
ZiX
Comments: 52
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 6:57 pm
very nice script mountaindew.
Viper01
Comments: 49
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 7:08 pm
10/10 from me
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 7:10 pm


Thanks guys!
SnoooP
Comments: 348
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 7:47 pm
nice one worked well and is useful when you are a youtube whore like me lmao...

10/10
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 7:53 pm
lol thanks SnoooP
SnoooP
Comments: 348
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 8:00 pm
thank you for postin it =)
EL
Comments: 914
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 1, 2008 2:33 am
Good work mountaindew.Ima suggest one thing,maybe send the results to P2P/PM,Its a bit flood or as Napa suggested haev it get only the top hit."Rate it or Hate it?"...8/10.`-.-´
G13AoUsTiS
Comments: 38
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 1, 2008 3:44 am
woha! good job mountaindew 11/10 from me:P lol!
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 1, 2008 8:12 am
Thanks guys
Quote:
Good work mountaindew.Ima suggest one thing,maybe send the results to P2P/PM,Its a bit flood or as Napa suggested haev it get only the top hit."Rate it or Hate it?"...8/10.`-.-´

Napa didn't say that :|

Well, if u want to pm, u could change "set %ychan $chan" to "set %ychan $nick" and I said in the Intro,
Quote:

If you want to change how many videos it returns, you can change "if (%N == 3)" to whatever number of videos you want to return

so you would make it "if (%N == 1)" :P
Lindrian
Comments: 694
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 1, 2008 8:31 am
The code does its job, looks nice. You should still advance your coding a little.
Look into $sockerr and more checks, socket failures etc.
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 1, 2008 8:47 am
updated a little

• added if ($sockerr)
• unset %N after sockclose
• for syntax error, it was oringinally Syntax: !YouTube [search criteria] but i made it $iif(%ychan,!,/) $+ YouTube...to see if it's an alias or not
EL
Comments: 914
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 1, 2008 9:28 am
Eh i should have meantioned lol he said that to me in chat >>.<< didnt mean here my bad,as for the changing of the code i know how im just saying an it was just a over all suggestion,thanks for posting how to change it for those who want tho.Still a fine code.`-.-´
jonesy44
Comments: 679
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 1, 2008 11:58 am
REALLY good script you have there, 10/10 from me =)
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 1, 2008 11:58 am
Thanks jonesy
Nikol4u
Comments: 4
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 2, 2008 7:08 am
10/10 good job dude .. really nice code!
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 2, 2008 12:17 pm
Thanks Nikol4u
ShAmPi
Comments: 11
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 5, 2008 3:19 am
Great script!
I tweaked the putout a bit to fit my channel, because it seemed a bit messy. But without your script I couldn't have tweaked it would I? :)
Great work! 9/10
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 5, 2008 2:00 pm
Glad you like it
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 6, 2008 5:07 pm
I made the titles (URL,Title,User,Length, etc.) red so that they stand out a little better
Eugenio
Comments: 517
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 7, 2008 6:39 am
I want to swear because this script is so good! thank you so much! 10/10 mate !
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 7, 2008 1:57 pm
Thanks Eugenio, glad you like it
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 7, 2008 3:42 pm
UPDATED:

• I rewrote the parsing using regex
• I named all variables (except %N) %y.something so that I can just do /unset %y.*
G13AoUsTiS
Comments: 38
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 15, 2008 3:05 pm
Added: "not working"
URL: "not working"

try it mountendew

if you fix this 11/10:)
Przemo
Comments: 2
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 16, 2008 1:32 pm
URL doesnt work for me still...
But nice script :)
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 16, 2008 3:16 pm
Yeah, it stripped the backslashes again. I resubmitted it, and it should work now.

Also, if this occurs again, the intro says:
Quote:

If colors/backslashes dont work: http://www.nomorepasting.com/getpaste.php?pasteid=13064

Hopefully it works now
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 16, 2008 5:45 pm
^^ I updated the nomorepasting link; I updated the script because it wasn't setting the channel as %ymsg when it was triggered in a channel

Also, there was a bug in the URL
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 21, 2008 8:56 am
I updated the Rating part of the snippet. It was inaccurate at times, and the method I was using wasn't really that great. So I used regex and inc'd the %var N times to count the star img's with a lot less coding ;)
jonesy44
Comments: 679
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 21, 2008 9:43 am
nice work mountaindew =D
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 21, 2008 3:07 pm
I once again updated the rating. I just realized that I could /inc %y.star .5 rather than having 2 variables and a million $iif()'s
ShAmPi
Comments: 11
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 22, 2008 12:29 pm
Erm help?

Code:
([N-A]uzushio) sex and pie... works everytime
&Pantsu-man searches for YouTube videos matching "and pie... works everytime"...
(&Pantsu-man) • Title: D'Angelo - Devil's Pie Added: 9 months ago User: kordtyb Length: 05:21 Views: 46,947 Rating: 4.5/5 URL: http://www.youtube.com/watch?v=8fNtipp5RLs
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 22, 2008 2:19 pm
yeah, the regex was screwed up so I changed the trigger to just !youtube earlier today, so just update it.
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Apr 10, 2008 6:51 pm
It looks like YouTube updated its layout a little, and the titles of videos are including "qliconalt='blah'" at the end.

So I updated the script, and everything should be fine now
MadDucky
Comments: 3
 
mIRC Snippet:  YouTube Video Searcher
Posted on Apr 10, 2008 11:53 pm
It doesn't seem to paste the url, the rest is fine but there's no url.
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Apr 14, 2008 9:18 am
Updated, it should show the URL now.
SiLver_ShaDow
Comments: 5
 
mIRC Snippet:  YouTube Video Searcher
Posted on Apr 22, 2008 8:26 am
WoW! Verry Nice ;D

im Waiting 4 Ur Wiki Search Snippet :)

Good Luck
criminal
Comments: 126
 
mIRC Snippet:  YouTube Video Searcher
Posted on Apr 30, 2008 1:12 am
V nice
i saw the same script like 2-3 days ago.. lmao..
anyways, it's not you who leaches :) 10/10
( • <--- I use this too! :D! )
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Apr 30, 2008 7:13 pm
Hehe, thanks guys.

Updated: added working regex to the on text ;)
Xpl0reR
Comments: 57
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 1, 2008 9:36 pm
/me will say Bravissimo!!
/me will give a 10/10 to Pepsi.. i mean Mountain Dew :p
Roxas
Comments: 18
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 2, 2008 1:43 am
Nice, 10/10, you should make a google one like this aswell. Also, what about something like !youtube -10, and it'll show the top 10 results, or like !youtube -5 it'll show the top 5, that'd be nice.
SpotRedDog
Comments: 84
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 2, 2008 5:04 pm
I like this its simple and quick and I like the fact that you can choose how many results you get back!!!
Soular
Comments: 5
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 11, 2008 11:54 pm
Oh gawd dude this is too awesome! 10/10
Dark_Aaron
Comments: 2
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 17, 2008 11:22 pm
not working for me
SnoooP
Comments: 348
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 18, 2008 4:25 am
thats strange... i use it still now in my bot and it works fine... :|... are you using the correct syntax to search ... !youtube (search criteria) or /youtube (Search criteria) ? i dont know other than that why it doesnt work ..
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 19, 2008 2:49 pm
Sorry Dark_Aaron, it seemed to strip the backslashes again. It should work fine now, I just updated the script.
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 21, 2008 8:33 pm
Updated due to YouTube's new way of showing the ratings. It's also more precise than half intervals now, so it can show 3.7 instead of 3.5 for example.
SnoooP
Comments: 348
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 21, 2008 8:55 pm
nice :)
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 22, 2008 3:26 pm
Updated again. I guess it wasn't closing the socket if there were less than three matches, so I added:
Code:

    if (</div> <!-- end search results --> isin %x) sockclose $sockname
jonesy44
Comments: 679
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 22, 2008 3:38 pm
Great stuff MD, you continue to own ALL scripts with your great soocket work, i know there are a few others that do great sockets stuff to :P
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Jun 19, 2008 4:55 pm
Updated:

The URL and Title wasn't showing because YouTube changed the source again, thanks for finding that ProBot.
Dark_Aaron
Comments: 2
 
mIRC Snippet:  YouTube Video Searcher
Posted on Jun 20, 2008 12:10 pm
can u fix it
NindoLover
Comments: 6
 
mIRC Snippet:  YouTube Video Searcher
Posted on Jun 20, 2008 2:45 pm
Is there a way you can make this go for google video wich is www.Video.google.com

Quote:
i'm wondering
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Jun 23, 2008 6:17 pm
Quote:

can u fix it

Umm...what do you mean? It's working fine right now :)

Nindo, that would need another snippet, maybe someday.
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Jul 7, 2008 8:12 pm
Updated:
• It's now multi-socket
• Got rid of the global vars, it's all done with /sockmark now

Edit: woops, it had two /'s in the URL
mountaindew
Comments: 1,422
 
mIRC Snippet:  YouTube Video Searcher
Posted on Jul 9, 2008 11:15 am
Updated it a lil' bit, there was unneeded regex and I shortened a couple things up

Please Register or Login to start posting comments.
Bottom