!hawkee Search script.

By Master-Of-Death on Jan 14, 2010

Paste and Save into your remotes.

Syntax: !hawkee

Returns 3 results if available.

(Again not the best I could do but still is ok.)

on *:TEXT:!hawkee*:#:{
  set %url /snippets/?search_query= $+ $2-
  set %chan $chan 
  set %hawkee /(/snippet/[0-9]\S+/)/
  set %intro /(class='large'>)(.*)(</a>)/
  sockopen hawkee www.hawkee.com 80
}
on *:SOCKOPEN:hawkee:{
  sockwrite -n $sockname GET %url HTTP/1.1
  sockwrite -n $sockname HOST: www.hawkee.com $+ $crlf $+ $crlf
}
on *:SOCKREAD:hawkee:{
  sockread %hawkeelink
  if (%hawkee1 == 3) { 
    unset %hawkee1
    sockclose $sockname
    halt
  } 
  elseif ($regex(hawkee,%hawkeelink,%hawkee)) && ($regex(intro,%hawkeelink,%intro)) { 
    inc %hawkee1 1
    msg %chan 4( $+ $regml(intro,2) $+ ) 
    msg %chan 12 { http://www.hawkee.com $+ $regml(hawkee,1) }
  }
}

Comments

Sign in to comment.
Stewie1k94   -  Mar 22, 2011

it gives the same 3 results each time

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.