Top

Hawkee Reviews Searcher

Please Register to submit score.
Average Score  7.0
Scores Submitted  3
Date Added  Feb 27, 2008
Last Updated  May 09, 2008
Tags  hawkee  latest  mirc  review  reviews  snippet  socket  sockets 

Introduction

Well, this is my first sockets script

It gets the latest review from http://hawkee.com/shop/reviews/ or searches for a review in http://hawkee.com/shop/search/search+text/reviews/

All the other scripts return snippets, and no one else made one for reviews, so I took a whack at it.

Syntax: [/reviews | !reviews] <search text>

<search text> is optional

Examples:

/reviews � echo's latest Hawkee review
!reviews � msg's latest Hawkee review
/reviews plasma tv � echo's results for "plasma tv"
!reviews mp3 player black � msg's results for "mp3 player black"

Here's some screens:





It's a little slow for getting the latest review, so be patient! So people don't flood !reviews thinking it's not working, it will message/echo "Please wait until the search has been completed" if the script is in the middle of grabbing a review.

It returns the top three review results. To change the number of results it gives, change "if (%N == 3) {" to whatever number you want it to return.

Enjoy

Grab the Code

Comments

  (17)  RSS
mountaindew
Comments: 1,380
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 27, 2008 7:44 pm
Enjoy
EL
Comments: 835
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 12:19 am
Nice work on this an fresh idea as well i like it.And yes it is very slow hmm but is there any way to make a count down with in it be kinda fun to watch actually lol caue i had ppl like wtf !review !review im like dude its slow stfu also mite as well make it ignore commands requests till the command completes stop them annouying command abusers.Hmm another thought is maybe make si search for a specific review entry as well.Be neato.any ways nice script an for your first time."Rate it or Hate it?"....7/10.`-.-´
Hawkee
Comments: 398
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 11:58 am
Pretty neat. I think we'll have to offer an RSS feed of Hawkee member reviews. That would make this much faster.
Hawkee
Comments: 398
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 12:04 pm
You should modify this to take a search query. The URL format works like this:

http://www.hawkee.com/shop/search/mp3+player/reviews/

http://www.hawkee.com/shop/search/42in+hdtv/reviews/
Lindrian
Comments: 694
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 12:12 pm
You're got me on the bus now, mountaindew! Im going to make something similar like this, but with a bunch of more functions. May the best scripter win! Lol :D

Great work btw.
EL
Comments: 835
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 12:41 pm
Quote:

May the best scripter win! Lol :D

Heh this aught to be good.`-.-´
Ken
Comments: 8
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 12:50 pm
This is very nice for your first sockets script! Not to mention, a new idea. :P However, since it is a little slow, you should implement a flood protection. Someone could flood this and lag you out.
mountaindew
Comments: 1,380
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 3:32 pm
Thanks guys

I made it so that if you trigger it (/reviews or !reviews) while the socket is already open, it'll say "Please wait until the search has been completed" and doesn't start over.
mountaindew
Comments: 1,380
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 4:13 pm
Updated it so that you can search through the reviews too. The searching is a LOT faster than getting the latest.

Syntax: [/reviews|!reviews] <search text>

Ex:

/reviews » echoes latest review
!reviews » msg's latest reviews
/reviews nintendo wii » echoes search for "nintendo wii"
!reviews mp3 player black » msg's search for "mp3 player black"

Hawkee
Comments: 398
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 4:27 pm
Nice upgrade. Searching is faster because the latest review page is very server intensive; plus searching for reviews is more useful anyway. And thanks for the flood protection because that protects the site from being hammered.
mountaindew
Comments: 1,380
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 4:45 pm
Thanks Hawkee
mountaindew
Comments: 1,380
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 5:14 pm
UPDATED: I forgot to add the "No results" part ;)
Lindrian
Comments: 694
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Feb 28, 2008 5:38 pm
Hehe, told you I was up for it ^^
Here's my version: http://www.hawkee.com/snippet/4069/
mountaindew
Comments: 1,380
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Mar 7, 2008 4:26 pm
Updated the parsing with regex and made all variables %h.something so i can just do /unset %h.*
Lindrian
Comments: 694
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Mar 7, 2008 6:00 pm
%h is a pretty major variable, try %hawk.* or something.
Also, your regexes are incorrect.
You need a starting / and an ending /

and you also need to exclude /, by using \/
mountaindew
Comments: 1,380
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on Mar 7, 2008 6:16 pm
Quote:

%h is a pretty major variable, try %hawk.* or something.

updated

Quote:

Also, your regexes are incorrect.
You need a starting / and an ending /

I did :|
Quote:

if ($regex(%x,/No reviews are available for this section yet./i)) {
if ($regex(%x,/<a href='(/shop/review.php?r_id=d+)' class='large'>(.+)</a>/i)) {
if ($regex(%x,/class='product'>(.+)</a><br>/i)) {


Quote:

and you also need to exclude /, by using /

I did have the backslashes originally, and it seemed to stay when i submitted, but then they disappeared i guess. Hopefully they stay there now.
mountaindew
Comments: 1,380
 
mIRC Snippet:  Hawkee Reviews Searcher
Posted on May 9, 2008 7:49 pm
Updated:
* Works with the new site layout
* Includes the rating that the person gave the product
* Now gives the top three results; change if (%N == 3) to however many results you want

Please Register or Login to start posting comments.
Bottom