Closed Bug 292454 Opened 20 years ago Closed 18 years ago

[GOOGLE] A module to search Google

Categories

(Webtools Graveyard :: Mozbot, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(1 file, 1 obsolete file)

I've written a BotModule to do google searches. Right now it's very simple -- it
just takes the command "google" and uses the Google API to do the query.

It has variables for: how many queries it will show you in the channel, the
maximum length of a single line, whether or not "safeSearch" is on, and how many
results it will return in a /msg, or at all.

It requires the CPAN Net::Google module, which in turn requires SOAP::Lite.
Attached file Google.bm (obsolete) —
Note that it requires a Google API Key to use it. The help describes how to get
a Google API Key.
Attachment #182276 - Flags: review?(ian)
Status: NEW → ASSIGNED
Oh, and if anybody would like to play with it, it's running on a bot called
"cluebot" on irc.freenode.org.
Attached file v2
Here's a slightly updated version, where safeSearch actually works (to some
degree) and we don't print html-escaped characters.
Attachment #182276 - Attachment is obsolete: true
Attachment #191184 - Flags: review?(colin.ogilvie)
Attachment #182276 - Flags: review?(ian)
Attachment #191184 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 191184 [details]
v2

This works for me, it has been running in a Bot I've been using since the first
version.
Attachment #191184 - Flags: review?(colin.ogilvie) → review+
Comment on attachment 191184 [details]
v2

Hey Hixie, can I check this in? It's basically documented entirely by its
"help" text, and I know it works. :-)
Attachment #191184 - Flags: review?(ian)
I'm sorry, I don't have time to review it at the moment... One day, one day...
QA Contact: kerz → mozbot
Comment on attachment 191184 [details]
v2

Please use a consistent syntax for string quoting (preferably '', not q{}). Other than that it's ok. Sorry it took so long. I'd make more detailed review comments but I don't really have the bandwidth these days. :-(
Attachment #191184 - Flags: review?(ian) → review+
  Thanks, Hixie. I changed it to q{} for both of them, since they both have internal quotes and it's easier that way.

RCS file: /cvsroot/mozilla/webtools/mozbot/BotModules/Google.bm,v
done
Checking in Google.bm;
/cvsroot/mozilla/webtools/mozbot/BotModules/Google.bm,v  <--  Google.bm
initial revision: 1.1
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → Mozbot 2.6
Verified added and fixed.
Status: RESOLVED → VERIFIED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: