Closed
Bug 292454
Opened 20 years ago
Closed 18 years ago
[GOOGLE] A module to search Google
Categories
(Webtools Graveyard :: Mozbot, enhancement)
Tracking
(Not tracked)
VERIFIED
FIXED
2.6
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.
| Assignee | ||
Comment 1•20 years ago
|
||
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)
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•20 years ago
|
||
Oh, and if anybody would like to play with it, it's running on a bot called "cluebot" on irc.freenode.org.
| Assignee | ||
Comment 3•19 years ago
|
||
Here's a slightly updated version, where safeSearch actually works (to some degree) and we don't print html-escaped characters.
| Assignee | ||
Updated•19 years ago
|
Attachment #182276 -
Attachment is obsolete: true
Attachment #191184 -
Flags: review?(colin.ogilvie)
| Assignee | ||
Updated•19 years ago
|
Attachment #182276 -
Flags: review?(ian)
Updated•19 years ago
|
Attachment #191184 -
Attachment mime type: application/octet-stream → text/plain
Comment 4•19 years ago
|
||
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+
| Assignee | ||
Comment 5•19 years ago
|
||
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)
Comment 6•19 years ago
|
||
I'm sorry, I don't have time to review it at the moment... One day, one day...
Updated•18 years ago
|
QA Contact: kerz → mozbot
Comment 7•18 years ago
|
||
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+
| Assignee | ||
Comment 8•18 years ago
|
||
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
doneStatus: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → Mozbot 2.6
Updated•6 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•