Advertisement
intersys

Youtube Profile by intersys

Jul 23rd, 2014
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.65 KB | None | 0 0
  1. alias youtube { sockclose yti | sockopen yti www.youtube.com 80 | did -a inf 9 www.youtube.com/user/ $+ %yti.chan $+ /about  }
  2. on *:sockopen:yti: {
  3.   sockwrite -n $sockname GET /user/ $+ %yti.chan $+ /about HTTP/1.0
  4.   sockwrite -n $sockname Host: www.youtube.com
  5.   sockwrite -n $sockname $crlf
  6. }
  7. on *:sockread:yti: {
  8.   if (!$sockerr) {
  9.     var %yti | sockread %yti
  10.     if ($regex(%yti,/subscribed" title="(.+?)">/)) { did -a inf 11 $regml(1) }
  11.     elseif ($regex(%yti,/<b>(.+?)</b> views/)) { did -a inf 12 $regml(1) }
  12.     elseif ($regex(%yti,/<meta name="title" content="(.+?)">/)) { did -a inf 10 $regml(1) }
  13.     elseif ($regex(%yti,/Joined(.+)/)) { did -a inf 13 $regml(1) }
  14.   }
  15. }
  16.  
  17. dialog inf {
  18.   title "Youtube Profile"
  19.   size -1 -1 142 80
  20.   option dbu
  21.   box "Youtube Profile Info - By intersys", 1, 2 3 139 75
  22.   text "שם:", 2, 7 16 25 8
  23.   text "מספר משתמשים רשומים:", 3, 7 26 69 8
  24.   text "מספר צפיות בסרטונים:", 4, 7 36 64 8
  25.   text "הצטרף בתאריך:", 5, 7 46 47 8
  26.   edit "", 6, 5 54 50 12
  27.   button "קבל נתונים", 7, 59 54 37 12
  28.   button "סגור", 8, 100 54 37 12
  29.   button "Button", 9, 5 67 133 9
  30.   text "", 10, 94 14 40 8
  31.   text "", 11, 94 24 40 8
  32.   text "", 12, 94 34 40 8
  33.   text "", 13, 94 44 40 8
  34. }
  35. on *:dialog:inf:*:*: {
  36.   if ($devent == init) {
  37.     did -a $dname 9,10,11,12,13 ריק
  38.   }
  39.   elseif ($devent == sclick) {
  40.     if ($did == 7) { set %yti.chan $did(6) | youtube }
  41.     elseif ($did == 8) { dialog -x $dname }
  42.     elseif ($did == 9) { url www.youtube.com/user/ $+ %yti.chan $+ /about }
  43.   }
  44.   elseif ($devent == close) { unset %yti.chan }
  45. }
  46. menu * {
  47.   Youtube Profile info:{ dialog $iif($dialog(inf),-v,-md) inf inf }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement