Author Topic: [mIRC] YouTube Title Finder  (Read 2819 times)

0 Members and 1 Guest are viewing this topic.

xC

  • Guest
[mIRC] YouTube Title Finder
« on: June 19, 2013, 04:04:11 pm »
Came across this on Pastebin, thought it was kinda neat.

Code: [Select]
alias xconnection { set %tmpx $remove($1,http://,youtube,.com,www.) | sockopen youtube youtube.com 80 }
on *:SOCKOPEN:youtube:{
  sockwrite -n $sockname GET %tmpx HTTP/1.1
  sockwrite -n $sockname Host: www.youtube.com
  sockwrite -n $sockname User-Agent: IRCSpider/mIRC $version
  sockwrite -n $sockname Accept: *.*, */*
  sockwrite -n $sockname Referer: $server
  sockwrite -n $sockname Connection: Keep-Alive
  sockwrite -n $sockname Content-Type: text/html
  sockwrite -n $sockname $crlf


}
on *:SOCKREAD:youtube:{
  sockread %mirc.temp
  tokenize 32 %mirc.temp
  if (!$window(@YouTube)) { window -a @YouTube }
  if ($1) { echo -g @YouTube $1- }
  if (<meta name="title" content=" isin %mirc.temp) { set %youtube.title $remove(%mirc.temp,$chr(9),<meta name="title" content=",">) }
  if (<strong class="watch-view-count">*</strong><br>views iswm %mirc.temp) { echo -ag $1- | set %youtube.views $remove($ifmatch,<strong class="watch-view-count">,</strong><br>views) }
  if (%youtube.title) { msg %tmp.chan 01,0You0,4Tube4:14 %youtube.title $chr(124) Views - %youtube.views $chr(124) Popularity - %youtibe.likes / %youtube.dislikes $chr(124) | sockclose youtube }
}
on *:SOCKCLOSE:youtube:{ /noop }
on *:TEXT:*:#:{
  set %tmp.chan $chan
  unset %d
  var %str = $gettok($1-,0,32)
  while (%str) {
    var %link = $gettok($1-,%str,32)
    if (youtube.com/watch?v= isin %link) { sockclose youtube | xconnection %link | clear @YouTube | halt }
    dec %str
  }
}

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [mIRC] YouTube Title Finder
« Reply #1 on: June 19, 2013, 07:29:19 pm »
lol who uses mIRC these days...? looks so old and ugly.

xC

  • Guest
Re: [mIRC] YouTube Title Finder
« Reply #2 on: June 19, 2013, 08:19:53 pm »
What do you recommend using?

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [mIRC] YouTube Title Finder
« Reply #3 on: June 19, 2013, 08:58:22 pm »
I recommend xChat - available for windows and linux. Small, fast, pretty, very supported with huge plugin database.

xC

  • Guest
Re: [mIRC] YouTube Title Finder
« Reply #4 on: June 19, 2013, 09:11:47 pm »
Xchat fucking sucks dude.

Edit: My girlfriend says "what are you a fucking fag, you want something pretty?"

Might I add you can configure mIRC to look quite 'pretty', as you call it.
« Last Edit: June 19, 2013, 09:13:06 pm by xC »

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [mIRC] YouTube Title Finder
« Reply #5 on: June 19, 2013, 09:36:06 pm »
Xchat fucking sucks dude.

Edit: My girlfriend says "what are you a fucking fag, you want something pretty?"

Might I add you can configure mIRC to look quite 'pretty', as you call it.
To each his own. I like simplicity, therefore I use xchat.

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [mIRC] YouTube Title Finder
« Reply #6 on: June 19, 2013, 09:38:19 pm »
To each his own. I like simplicity, therefore I use xchat.
I agree, and besides that i use linux :)
~Factionwars

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: [mIRC] YouTube Title Finder
« Reply #7 on: June 20, 2013, 10:43:50 am »
If you want simplicity, use irssi, ircII or any other CLI-based client.

I use XChat often as well, but "looking old and ugly" isn't an argument by any means.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet