Top

YouTube Video Searcher


mIRC Code
+ 17 likes
Please Register to submit score.
Bookmark and Share
Average Score  9.3 (of 26 scores)
Date Added  Feb 29, 2008
Last Updated  Dec 13, 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

;~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*;
;           YouTube Video Searcher               ;
;            Made by MountainDew                 ;
;*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~;
 
on $*:text:/^[!@.](y(ou)?tube|yt)\b/Si:#:{
  youtube $+($ticks,$chr(1),$chan,$chr(1),$2-)
}
alias youtube {
  if ($numtok($1-,1) >= 2) {
    tokenize 1 $1-
    var %y.sock $1
    var %y.chan $2
    var %y.text $3-
  }
  else {
    var %y.sock $ticks
    var %y.text $1-
  }
  if (!%y.text) {
    $iif(%y.chan,msg $v1,echo -a) Syntax: $iif(%y.chan,!,/) $+ YouTube [search criteria]
    halt
  }
  $iif(%y.chan,describe $v1 searches,echo -a Searching) for YouTube videos matching $qt($+(,%y.text,)) $+ ...
  sockopen youtube. [ $+ [ %y.sock ] ] www.youtube.com 80
  sockmark youtube. [ $+ [ %y.sock ] ] $+($iif(%y.chan,msg $v1,echo -a),$chr(1),%y.text)
}
on *:SOCKOPEN:youtube.*: {
  sockwrite -nt $sockname GET /results?search_query= $+ $urlencode($gsm($sockname,2,1)) HTTP/1.1
  sockwrite -nt $sockname Host: www.youtube.com
  sockwrite -nt $sockname $crlf
}
on *:SOCKREAD:youtube.*: {
  if ($sockerr) {
    $gsm($sockname,1,1) Error connecting to YouTube: $sock($sockname).wmsg
    sockclose $sockname
  }
  else {
    var %x. [ $+ [ $sockname ] ]
    sockread %x. [ $+ [ $sockname ] ]
    if (no videos found for isin %x. [ $+ [ $sockname ] ]) {
      $gsm($sockname,1,1) The search for $qt($+(,$gsm($sockname,2,1),)) returned no results.
      sockclose $sockname
    }
    if ($regex(%x. [ $+ [ $sockname ] ],/<a id="video-url-.+?" href="(\/watch\?v=.+?)".+<img title="(.+?)"/i)) {
      set %yt.url $regml(1)
      set %yt.title $regml(2)
    }
    if ($regex(%x. [ $+ [ $sockname ] ],/<span id="video-run-time-.+?">(\d+:\d+)<\/span><\/div>/i)) set %yt.length $regml(1)
    if ($regex(%x. [ $+ [ $sockname ] ],/(\d+? .+? ago)/i)) set %yt.added $regml(1)
    if ($regex(%x. [ $+ [ $sockname ] ],/<img class="ratingVS.+?" alt="(.+?)" src=/i)) set %yt.rating $regml(1)
    if ($regex(%x. [ $+ [ $sockname ] ],/class="video-view-count">(.+) views</span>/i)) set %yt.views $regml(1)
    if (video-from-username isin %x. [ $+ [ $sockname ] ]) { 
      inc %n. [ $+ [ $sockname ] ]
      $gsm($sockname,1,1) 9 $+ $chr(149) 4Title: $hf(%yt.title) 4Added: %yt.added 4User: $hf($v2) 4Length: %yt.length 4Views: %yt.views 4Rating: $iif(%yt.rating,$v1,0) $+ /5 4URL: http://www.youtube.com $+ %yt.url
      if (%n. [ $+ [ $sockname ] ] >= 3) {
        sockclose $sockname
        unset %n. [ $+ [ $sockname ] ] %yt.*
      }
      unset %yt.*
      sockmark $sockname $+($gsm($sockname,1,1),$chr(1),$gsm($sockname,2,1))
    }
    if (<!-- end search results --> isin %x. [ $+ [ $sockname ] ]) sockclose $sockname
  }
}
alias hf return $remove($replace($regsubex($1-,/^[^<]*>|<[^>]*>|<[^>]*|$|&[^;]+;/g,$null),&quot;,",&gt;,>,&lt,<,&amp;,&,&nbsp;,$chr(160)),?,$chr(9))
alias gsm return $gettok($sock($1).mark,$2,$3)
alias urlencode return $regsubex($1,/(\W)/gS,% $+ $base($asc(\1),10,16,2)))

Comments

  (121)  RSS
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 4:37 pm
Enjoy
napa182
Comments: 1,454
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 4:53 pm
nice work mountaindew.
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 4:57 pm
Thanks napa
water_dragon
Comments: 49
 
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,826
 
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: 167
 
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,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 6:29 pm
:o

Thanks Jamiie!
napa182
Comments: 1,454
 
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,826
 
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: 51
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 6:57 pm
very nice script mountaindew.
Viper01
Comments: 94
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 7:08 pm
10/10 from me
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 7:10 pm


Thanks guys!
SnoooP
Comments: 340
 
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,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 7:53 pm
lol thanks SnoooP
SnoooP
Comments: 340
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 29, 2008 8:00 pm
thank you for postin it =)
EL
Comments: 1,125
 
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: 37
 
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,826
 
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: 761
 
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,826
 
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: 1,125
 
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: 1,856
 
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,826
 
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,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 2, 2008 12:17 pm
Thanks Nikol4u
ShAmPi
Comments: 12
 
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,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 5, 2008 2:00 pm
Glad you like it
mountaindew
Comments: 1,826
 
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: 1,193
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 7, 2008 6:39 am
pwnz MD
/me rates 10
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 7, 2008 1:57 pm
Thanks Eugenio, glad you like it
mountaindew
Comments: 1,826
 
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: 37
 
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,826
 
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,826
 
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,826
 
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: 1,856
 
mIRC Snippet:  YouTube Video Searcher
Posted on Mar 21, 2008 9:43 am
nice work mountaindew =D
mountaindew
Comments: 1,826
 
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: 12
 
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,826
 
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,826
 
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,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Apr 14, 2008 9:18 am
Updated, it should show the URL now.
SiLver_ShaDow
Comments: 4
 
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: 121
 
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,826
 
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: 223
 
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: 20
 
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: 80
 
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: 9
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 17, 2008 11:22 pm
not working for me
SnoooP
Comments: 340
 
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,826
 
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,826
 
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: 340
 
mIRC Snippet:  YouTube Video Searcher
Posted on May 21, 2008 8:55 pm
nice :)
mountaindew
Comments: 1,826
 
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: 1,856
 
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,826
 
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: 9
 
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,826
 
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,826
 
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,826
 
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
ermansanidhya
Comments: 42
 
mIRC Snippet:  YouTube Video Searcher
Posted on Aug 15, 2008 2:49 pm
only work until 1 week agoo in server dalnet, but today when i try again not work anymore
:)
AHBARAR
Comments: 167
 
mIRC Snippet:  YouTube Video Searcher
Posted on Aug 17, 2008 12:23 pm
it dont give me any result always same answer
The search for returned no results.
[20:18:04] <@AHBARAR> !youtube mentos and coke
[20:18:05] * @BoT searches for YouTube videos matching ...
[20:18:07] <@BoT> The search for returned no results.
Lingo
Comments: 7
 
mIRC Snippet:  YouTube Video Searcher
Posted on Aug 17, 2008 10:07 pm
hello, i try it but this hapend

-> *searches* for YouTube videos matching ...
-
searches No such nick/channel
-
-> *The* search for returned no results.
-
The No such nick/channel

dont find the channel for send the msg
and for all the searchs is this --> The search for returned no results.
$gsm($sockname,1,1) #probando i change his but dont work good...
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Aug 19, 2008 11:54 am
Wierd, it seems to be working fine for me :/
Quote:

(12:54:16) (&WiFi) !youtube mentos and coke
(12:54:16) ~MountainDew searches for YouTube videos matching "mentos and coke"...
(12:54:17) (~MountainDew) • Title: Diet Coke + Mentos Added: 2 years ago User: zorro103 Length: 02:57 Views: 7,112,086 Rating: 5.0/5 URL: http://www.youtube.com/watch?v=hKoB0MHVBvM
(12:54:17) (~MountainDew) • Title: Diet Coke+Mentos=Human experiment: EXTREME GRAPHIC CONTENT Added: 2 years ago User: renetto Length: 01:20 Views: 9,260,504 Rating: 3.5/5 URL: http://www.youtube.com/watch?v=lFf-kW1E0Tc
(12:54:18) (~MountainDew) • Title: The Extreme Diet Coke & Mentos Experiments Added: 2 years ago User: runnermore Length: 02:29 Views: 603,987 Rating: 4.5/5 URL: http://www.youtube.com/watch?v=znoSaHwbHYg

I'll have to look into this a little bit.

Make sure all of you have updated the script if you haven't already.
Akishoot
Comments: 139
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 3, 2008 1:30 pm
It works great for me. 10/10 and a "like" here MountainDew. :)
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 3, 2008 3:01 pm
Thanks akishoot :)
greenlanter420
Comments: 77
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 3, 2008 5:37 pm
amazing work mountaindew 10/10
EL
Comments: 1,125
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 5, 2008 1:55 pm
Ugh i hate youtube but awesome script MD.`-.-´
EL
Comments: 1,125
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 5, 2008 4:44 pm
o0o and "Rate it or Hate it?"...8/10.`-.-´
a careful warchild
Comments: 243
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 6, 2008 5:17 pm
again, nice job :) 10/10 +1 like :D
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 6, 2008 5:29 pm
Thanks EL and warchild
Maddogbeau
Comments: 5
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 18, 2008 6:11 am
Really Nice Job =]
a careful warchild
Comments: 243
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 18, 2008 7:01 pm
md is there a way i can change my username >.< without creating a new account?....
napa182
Comments: 1,454
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 18, 2008 7:19 pm
why would you ask that here?
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 18, 2008 9:04 pm
Not that I know of, try pm'ing Hawkee.
NeoOoeN
Comments: 8
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 20, 2008 7:07 pm
Very nice job.

But...i've got a little problem :

[02:00:50] <@Prof_Arthuro> • Title: 5.0 Added: User: Length: 00:20 Views: Rating: 0/5 URL: http://www.youtube.com/watch?v=rIgBMCaL6kM

Any idea ?
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 20, 2008 8:43 pm
Hmm thanks for lettin me know, I'll take a look at it tomorrow.
NeoOoeN
Comments: 8
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 21, 2008 8:03 am
Thanks a lot , this script is one of the most useful i ve ever seen
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 26, 2008 6:30 pm
Sorry for the delay, I forgot I was supposed to fix this lol.

But all set now, there was just a problem with the order of the sockmarks changing.
NeoOoeN
Comments: 8
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 28, 2008 6:05 pm
[01:02:15] <~NeoOZzZ> !youtube dota
[01:02:16] * @Prof_Arthuro searches for YouTube videos matching "dota"...
[01:02:40] <~NeoOZzZ> .

[01:03:01] <~NeoOZzZ> !youtube Wtf
[01:03:01] * @Prof_Arthuro searches for YouTube videos matching "Wtf"...
[01:03:31] * Quits: @Prof_Arthuro (Glisseur@Diplome.en.astrophysique) (Quit: -=SysReset 2.55=-)


Searching and... nothing :]
Eugenio
Comments: 1,193
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 29, 2008 3:09 am
rofl FAIL
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 29, 2008 2:41 pm
That's wierd, the on text seems to work fine on my end. Check the status window to see if there's any errors. Also check if the alias works (/youtube [something]).
NeoOoeN
Comments: 8
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 29, 2008 7:31 pm
/youtube xx doesn't works too...

Raaaahhh too bad ! Always the 'searches for YouTube videos matching xx '

Maybe problem on my irc server... ( irc.dreams-fr.net:6667 )
NeoOoeN
Comments: 8
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 7, 2008 12:20 pm
Well. So it works, but same problem again :

<12~NeoOoeN> !youtube test
<@Prof_Arthuro> • Title: 4.5 Added: User: test Length: 02:58 Views: Rating: 0/5 URL: http://www.youtube.com/watch?v=PXJ6RGmCIbg
<@Prof_Arthuro> • Title: 4.5 Added: User: test Length: 03:57 Views: Rating: 0/5 URL: http://www.youtube.com/watch?v=GdyGFbuLe_0
<@Prof_Arthuro> • Title: 5.0 Added: User: test Length: 01:55 Views: Rating: 0/5 URL: http://www.youtube.com/watch?v=y0fFCtk6FCE
prozipps
Comments: 2
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 7, 2008 5:33 pm
I cant get anything out of it.
is just supossed to be pasted in remotes?
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 8, 2008 2:12 pm
Ugh the sockmarks are out of order again...I'll try fixing it right now.

Edit: screw doing it all in sockmarks...I just turned them back into variables and everything should be fine now.
NeoOoeN
Comments: 8
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 8, 2008 5:37 pm
[00:36:10] <~NeoOWAR> !youtube test
[00:36:11] * @Prof_Arthuro searches for YouTube videos matching "test"...
[00:36:12] <@Prof_Arthuro> • Title: Added: User: Length: 02:58 Views: Rating: 4.5/5 URL: http://www.youtube.com/watch?v=PXJ6RGmCIbg
[00:36:13] <@Prof_Arthuro> • Title: Added: User: Length: 03:57 Views: Rating: 4.5/5 URL: http://www.youtube.com/watch?v=GdyGFbuLe_0
[00:36:13] <@Prof_Arthuro> • Title: Added: User: Length: 01:55 Views: Rating: 5.0/5 URL: http://www.youtube.com/watch?v=y0fFCtk6FCE

Right rating, right length; but not Title, Added, User.

That seems to be a big mess to fix it :]
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 8, 2008 5:46 pm
Wierd, it shows the title and added for me :/

Quote:

Searching for YouTube videos matching "test"...
• Title: Lieberman on Palin: It's Not An IQ Test Added: 6 days ago User: tpmtv Length: 00:35 Views: 103,935 Rating: 4.5/5 URL: http://www.youtube.com/watch?v=X3AZqoSXUhU
• Title: Test Your Awareness: Do The Test Added: 7 months ago User: dothetest Length: 01:09 Views: 4,679,132 Rating: 5.0/5 URL: http://www.youtube.com/watch?v=Ahg6qcgoay4
• Title: Chemical Brothers ft Richard Ashcroft - The Test Added: 1 year ago User: soah69 Length: 06:07 Views: 717,667 Rating: 5.0/5 URL: http://www.youtube.com/watch?v=QDe6MZQjpho
Mirccoder
Comments: 22
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 8, 2008 7:14 pm
I like it its nice i dont have ot search on youtube for hours.but every time i use /youtube pump up the jam or any song it comes up with nothing there.
NeoOoeN
Comments: 8
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 8, 2008 8:00 pm
That's so weird, i've tested on :

IRC.DeltaAnime.net
IRC.UnderNet.org
IRC.SwiftIRC.net

And none has worked...

Always :

• Title: Added: User: Length: 02:58 Views: Rating: 4.5/5 URL: http://www.youtube.com/watch?v=PXJ6RGmCIbg
frapp
Comments: 2
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 15, 2008 5:59 pm
great script , but past 2 days it wont show url's ?
NeoOoeN
Comments: 8
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 16, 2008 3:47 pm
Same here
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 16, 2008 4:14 pm
Damn, I'll try to fix it right now.
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 16, 2008 4:26 pm
Okay it should be fine now, YouTube yet again updated its page.
frapp
Comments: 2
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 17, 2008 2:37 pm
thanks mountaindew :)
TwistedHumor
Comments: 20
 
mIRC Snippet:  YouTube Video Searcher
Posted on Oct 23, 2008 10:17 pm
Lots of comments... But Excellent Work..!
Suggestion..? Minor issue I'm having with this...
If you're not an op on channel, this can cause 1 to get kicked...

Can you make it msg or notice $nick?
Not asking for an update on this...
Just another way for usage or dialog to switch?
greenlanter420
Comments: 77
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 6, 2008 5:04 pm
is this still working? its not working for me it just hangs on search
jonesy44
Comments: 1,856
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 6, 2008 5:09 pm
I guess so.. no complaints?
Protech
Comments: 3
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 7, 2008 4:51 pm
I love this script, but it seems I have the same problem as greenlanter now. It just do /me searches for "your search" and then nothing happens.
Would be great with an update moutaindew ;) I love your work. Thanks for doing this for all of us:)
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 8, 2008 3:52 pm
Damn, looks like the whole page is changed...I'll try working on it.
jonesy44
Comments: 1,856
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 8, 2008 4:55 pm
Gay Google :[
Protech
Comments: 3
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 13, 2008 12:23 pm
Any progress mate? :D I've been checking this site everyday for an update now ;) Love this script :D
jonesy44
Comments: 1,856
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 13, 2008 12:34 pm
lol, hang in there, Protech. MD's a student so i'm not sure if he gets that much time.
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 13, 2008 3:18 pm
Crap I started fixing it and forgot to finish it :/

I'll do it right now.
mountaindew
Comments: 1,826
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 13, 2008 4:05 pm
Alright, should work now.
Protech
Comments: 3
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 13, 2008 5:32 pm
hehe jonesy44 ;) He's not the only student ;) Just trying to remind him that people are appreciating his work :)
But it seems fixed now :D YATTA! :)
jonesy44
Comments: 1,856
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 13, 2008 5:46 pm
Student here too lol :P Good stuff, nice one md x]
TwistedHumor
Comments: 20
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 14, 2008 6:01 am
any reason why it would be sending me to uk youtube?
jonesy44
Comments: 1,856
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 14, 2008 7:13 am
If the video was posted in the UK, it would link to the UK subdomain :]
uneek
Comments: 26
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 17, 2008 2:15 am
Looks like they changed the page again :/

[02:15] <Grant> !youtube apple
[02:15] * uNeek searches for YouTube videos matching ...
[02:15] <uNeek> The search for returned no results.
SuPeRFlY
Comments: 22
 
mIRC Snippet:  YouTube Video Searcher
Posted on Dec 18, 2008 10:18 pm
This snippet works perfect. 8/10
greenlanter420
Comments: 77
 
mIRC Snippet:  YouTube Video Searcher
Posted on Jan 31, 2009 7:47 pm
it looks like they changed something on youtube again
satya87
Comments: 2
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 7, 2009 1:06 am
rating doesnt work anymore baaah
Purcell
Comments: 37
 
mIRC Snippet:  YouTube Video Searcher
Posted on Feb 17, 2009 12:02 pm
How i can set it in Notice? :)

Nice script!
bloodskin
Comments: 1
 
mIRC Snippet:  YouTube Video Searcher
Posted on Jul 3, 2009 2:39 am
WARNING ::: RATING DOES NOT WORK


;~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*;
; YouTube Video Searcher ;
; Made by MountainDew ;
; Updated July 3rd 2009 by BloodSkin ;
;*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~;

on $*:text:/^[!@.](y(ou)?tube|yt)\b/Si:#:{
youtube $+($ticks,$chr(1),$chan,$chr(1),$2-)
}
alias youtube {
if ($numtok($1-,1) >= 2) {
tokenize 1 $1-
var %y.sock $1
var %y.chan $2
var %y.text $3-
}
else {
var %y.sock $ticks
var %y.text $1-
}
if (!%y.text) {
$iif(%y.chan,msg $v1,echo -a) Syntax: $iif(%y.chan,!,/) $+ YouTube [search criteria]
halt
}
$iif(%y.chan,describe $v1 searches,echo -a Searching) for YouTube videos matching $qt($+(,%y.text,)) $+ ...
sockopen youtube. [ $+ [ %y.sock ] ] www.youtube.com 80
sockmark youtube. [ $+ [ %y.sock ] ] $+($iif(%y.chan,msg $v1,echo -a),$chr(1),%y.text)
}
on *:SOCKOPEN:youtube.*: {
sockwrite -nt $sockname GET /results?search_query= $+ $urlencode($gsm($sockname,2,1)) HTTP/1.1
sockwrite -nt $sockname Host: www.youtube.com
sockwrite -nt $sockname $crlf
}
on *:SOCKREAD:youtube.*: {
if ($sockerr) {
$gsm($sockname,1,1) Error connecting to YouTube: $sock($sockname).wmsg
sockclose $sockname
}
else {
var %x. [ $+ [ $sockname ] ]
sockread %x. [ $+ [ $sockname ] ]
if (no videos found for isin %x. [ $+ [ $sockname ] ]) {
$gsm($sockname,1,1) The search for $qt($+(,$gsm($sockname,2,1),)) returned no results.
sockclose $sockname
}
if ($regex(%x. [ $+ [ $sockname ] ],/<a id="video-url-.+?" href="(\/watch\?v=.+?)".+<img title="(.+?)"/i)) {
set %yt.url $regml(1)
set %yt.title $regml(2)
}
if ($regex(%x. [ $+ [ $sockname ] ],/<span id="video-run-time-.+?">(\d+:\d+)<\/span><\/div>/i)) set %yt.length $regml(1)
if ($regex(%x. [ $+ [ $sockname ] ],/(\d+? .+? ago)/i)) set %yt.added $regml(1)
if ($regex(%x. [ $+ [ $sockname ] ],/<img class="ratingVS.+?" alt="(.+?)" src=/i)) set %yt.rating $regml(1)
if ($regex(%x. [ $+ [ $sockname ] ],/class="video-view-count">(.+) views</span>/i)) set %yt.views $regml(1)
if (" class="hLink" href="/user/ isin %x. [ $+ [ $sockname ] ]) {
inc %n. [ $+ [ $sockname ] ]
$gsm($sockname,1,1) 9 $+ $chr(149) 4Title: $hf(%yt.title) 4Added: %yt.added 4User: $hf($v2) 4Length: %yt.length 4Views: %yt.views 4Rating: $iif(%yt.rating,$v1,0) $+ /5 4URL: http://www.youtube.com $+ %yt.url
if (%n. [ $+ [ $sockname ] ] >= 3) {
sockclose $sockname
unset %n. [ $+ [ $sockname ] ] %yt.*
}
unset %yt.*
sockmark $sockname $+($gsm($sockname,1,1),$chr(1),$gsm($sockname,2,1))
}
if (<!-- end search results --> isin %x. [ $+ [ $sockname ] ]) sockclose $sockname
}
}
alias hf return $remove($replace($regsubex($1-,/^[^<]*>|<[^>]*>|<[^>]*|$|&[^;]+;/g,$null),&quot;,",&gt;,>,&lt,<,&amp;,&,&nbsp;,$chr(160)),?,$chr(9))
alias gsm return $gettok($sock($1).mark,$2,$3)
alias urlencode return $regsubex($1,/(\W)/gS,% $+ $base($asc(\1),10,16,2)))



papanoel
Comments: 3
 
mIRC Snippet:  YouTube Video Searcher
Posted on Aug 21, 2009 1:05 pm
dont work :(
<O_o> !youtube papa
* Pass searches for YouTube videos matching ...
<Pass> The search for returned no results.
kibblz
Comments: 3
 
mIRC Snippet:  YouTube Video Searcher
Posted on Nov 13, 2009 12:27 am
length/duration, ratings, views.. all don't work. the views works but it is never accurate. someone fix it.. love this script :(

[7:13:07 am] <harleyquinn> !youtube uncharted montage
[7:13:07 am] * Tifa searches for YouTube videos matching "uncharted montage"...
[7:13:08 am] <Tifa> • Title: ZoDiakh - Uncharted Montage Added: 9 months ago User: SiiK69SiiNz Length: Views: 26,381 Rating: 0/5 URL: http://www.youtube.com/watch?v=RFjaPva5GwM

oh and the Added by i think is set for US time or something? cause one video i searched for says Added : 1 day ago which infact was 3 days ago so that's weird.
SnoooP
Comments: 340
 
mIRC Snippet:  YouTube Video Searcher
Posted on Nov 13, 2009 8:07 am
It may not work because youtube may have changed the site around a bit. and MountainDew hasn't been active for a while so I think your best posting in the forum asking for help.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom