summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/search.rb
AgeCommit message (Collapse)Author
2020-04-24refactor: remove global bot instance, closes #42Matthias Hecker
2020-04-03plugin(search): fix wolfram and gdef, removed someMatthias Hecker
this removes gcount and gtime from the search plugin, google no longer provides this information easily
2020-04-02plugin(search): fix search and gcalc, closes #28, #29Matthias Hecker
2013-04-25search: updated Wolfram Alpha method to comply with apiJay Thomas
2013-01-30search: wolfram fixGiuseppe Bilotta
Ruby doesn't do C-style string concatenation. (My fault.)
2012-09-14search: improve ddg output with missing sourcesGiuseppe Bilotta
Sometimes duckduckgo fails to report the source/url of a definition or abstract. Cope with this by removing the leading double dash when no source information is provided
2012-09-14search: thread the new engines tooGiuseppe Bilotta
2012-09-14search: rbot-ize wolframalphaGiuseppe Bilotta
2012-09-14search: preliminary Wolfram Alpha supportGiuseppe Bilotta
Thanks Lite_ again
2012-09-13search: some ddg reworkingGiuseppe Bilotta
Make it more similar to google, modulo obvious differences in behavior and possibilities.
2012-09-13search: be more rbot-ish in ddgGiuseppe Bilotta
2012-09-13search: preliminary duckduckgo supportGiuseppe Bilotta
Thanks Lite_
2012-09-10search: fix google calc scrapingGiuseppe Bilotta
2012-08-31search: update for changes in google's htmlGiuseppe Bilotta
2012-05-14search: fix googleGiuseppe Bilotta
2012-01-25search: fix gcalcGiuseppe Bilotta
Google changed their layout again. To be a little more future-proof, split the html into as many <br/> sections as there are, and pick the first one that contains the literal string ' = ' if there is one.
2011-05-10search: update gdef to changes in web resultGiuseppe Bilotta
2010-10-14search: gcalc fixGiuseppe Bilotta
Google changed their HTML again, breaking gcalc. Fix by using the WAP search and get the first result if it contains an equal sign.
2010-09-01search: google calc can be in non-h2 headersGiuseppe Bilotta
2010-08-17search: skip non-search-results linkGiuseppe Bilotta
This prevents the regexp scan to grab the Google Privacy link when no results were found.
2009-09-24search plugin: handle image in resultsGiuseppe Bilotta
Some results from Google can contain <img> tags as their 'text' part, so use the new ircify_html feature to display them.
2009-09-12search plugin: cleanup and fix results Array vs String mismatchGiuseppe Bilotta
2009-08-31search: show long definitions with 'google define:stuff'Giuseppe Bilotta
2009-08-31search plugin: update gdefGiuseppe Bilotta
2009-08-29search plugin: enhance 'lucky' outputGiuseppe Bilotta
'lucky' search only selects the first hit, so set hit to 1 and enable 'single' mode. Also rework the results output, and make a custom 'title -- url' for lucky mode.
2009-08-28search plugin: update google searchGiuseppe Bilotta
2009-06-12search: Google changed their WAP addressGiuseppe Bilotta
2009-05-20search: gtime instead of timeGiuseppe Bilotta
The time command is already defined by the corresponding plugin, so use gtime (like gdef and gcalc) for the Google clock.
2009-05-20search: Added a time command that gets the time from Google. !time londonDavid Gadling
2009-03-20search: fix gcalc regexp againGiuseppe Bilotta
2009-02-26search: add command 'lucky'Raine Virta
Sometimes you just wish to google the first hit and have a clutter free output showing only the url.
2009-02-19remove whitespaceRaine Virta
2008-07-03search plugin: added a gcount function to return the number of results in a ↵Casey Link
google query
2008-06-30search plugin: fix gcalc regexpGiuseppe Bilotta
2008-03-23* plugins/search: thread, don't blockdmitry kim
2008-02-13search plugin: fix gcalcGiuseppe Bilotta
2007-09-12namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*Giuseppe Bilotta
2007-08-14search plugin: use single result format when a single hit is foundGiuseppe Bilotta
2007-07-07search plugin: add google define supportGiuseppe Bilotta
2007-07-07Fix Google Calculator regexp and ask for UTF-8 encoded resultsGiuseppe Bilotta
2007-05-23search plugin: truncate overlong lines when outputting first par in compact formGiuseppe Bilotta
2007-05-23search plugin: compactify results when only one of them is returnedGiuseppe Bilotta
2007-05-23search plugin: add support for uncyclopediaGiuseppe Bilotta
2007-04-08plugins: use CGI.escape instead of URI.escape where appropriate, remove some ↵Giuseppe Bilotta
checks for InvalidURIs that don't make sense anymore, irficy some more html
2007-04-07plugins: remove excess requires and Net::HTTP.version setupsGiuseppe Bilotta
2007-04-05search plugin: gcalc command thanks to epitronGiuseppe Bilotta
2007-04-01search plugin: let the user know when no body was found and no error was raisedGiuseppe Bilotta
2007-03-30*** (httputil) major rework, new caching implementation, unified requestDmitry Kim
processing + (httputil) post support, partial request support, other features - (httputil) removed partial_body() and get_cached() [merged into get()] * (plugins/, utils) minimal changes to accomodate for the new http_utils * (utils, ircbot) moved utils initialization into utils.rb * (tube.rb) (partially) accomodate for upstream site layout changes
2007-03-30- (utils.rb) removed http_get, since it's obsoletedDmitry Kim
+ (utils.rb) added @@bot class variable * (utils.rb) get_first_pars should return a value * (plugins) no need to pass http_util to the Utils.get_first_pars
2007-02-18Plugin header boilerplating.Giuseppe Bilotta
New plugin.header file provided, to be used as model for the header of new plugins. Many existing plugins have been adjusted to provide the same info the same way. I might have misplaced some information, so please let me know if this is the case. Also augmented a couple of copyright notices to include the 'rbot development team' alongside Tom Gilbert.