Daniel Folkinshteyn
76f109ce0d
Google: in lucky --snippet, properly convert html to text, using utils.web.htmlToText.
2010-07-14 19:08:13 -04:00
Daniel Folkinshteyn
6905d22c2c
Google: add --snippet option to lucky command, which shows the text snippet for the page.
2010-07-14 15:56:48 -04:00
Daniel Folkinshteyn
1a228b3e7d
fix google calc to work when doing a currency conversion.
...
made the calcre more generic, so it finds stuff on both math and currency.
nothing a little exploration of google html page source couldn't solve.
2010-06-02 18:36:27 -04:00
Daniel Folkinshteyn
5e162a28f7
make google translate return detailed google error, instead of the unhelpful "we broke google".
2010-04-11 18:27:39 -04:00
Daniel Folkinshteyn
127b3cfabd
for google translate, error if destination language is 'auto'.
2010-04-11 17:37:09 -04:00
Daniel Folkinshteyn
f4d47876d4
fix some encoding error for non-ascii langs
2010-04-04 01:12:50 -04:00
Daniel Folkinshteyn
34cab7f4c9
add detected source language display for 'auto' google translate, add test for auto translate.
2010-04-03 23:31:13 -04:00
Daniel Folkinshteyn
b8f8cec6f5
enable google translate to autodetect language with 'auto' fromlang.
2010-04-02 02:03:57 -04:00
James Vega
3689460d0f
Use 0 when no results are returned for Google.fight
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-28 21:21:00 -05:00
James Vega
461f943d97
Google: Keep the list of supported languages in one place.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-06-26 18:21:16 -04:00
Ricky Zhou
416a6e8dd2
Try using simplejson instead if json-py is installed.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-06-03 04:28:45 -04:00
James Vega
d7dee482ca
Google: Ensure we don't try to use the 3rd party json module.
...
json-py provides a different interface than simplejson (renamed json when
included with Python2.6). As such, we test for the different interface and
raise an error when we encounter it.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-19 00:55:17 -04:00
James Vega
d8297dfd3f
Google: Modify our local simplejson to work pre-Python2.6
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-31 07:50:41 -04:00
James Vega
13715a0ca3
Google: Fix calc by basing the regex off the calc img
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-19 21:10:46 -04:00
James Vega
7b906fbf54
Fully qualify the call to universalImport so we don't get a NameError.
...
Also added some ImportError handlers to aid letting users of distribution
packages know if the distributions strip out the local module copies.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-19 20:33:17 -04:00
James Vega
dc68e112df
Add simplejson to the Google plugin and use universalImport
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-15 19:55:14 -04:00
James Vega
8d21b7a8cf
Google: Rename safeSearch to searchFilter to ease upgrades
2009-03-11 13:37:27 -04:00
James Vega
125d542706
Google: Fix Language.normalize to not prepend the empty string with 'lang_'
2009-03-11 13:37:27 -04:00
James Vega
b99b2c7f64
Add tests for recent bug-fixes
2009-03-11 13:37:26 -04:00
James Vega
cfe0ee8462
Actually set the 'rsz' option if it isn't defined.
2009-03-11 13:37:25 -04:00
James Vega
f772fbf284
Forgot to utf-8 encode the URL from a Google search
2009-03-11 13:37:25 -04:00
James Vega
6cfde5bcc9
Update googleSnarfer to use the new search method
2009-03-11 13:37:25 -04:00
James Vega
2b7c36c747
Remove unused SOAP.py from old Google implementation
2009-03-11 13:37:25 -04:00
James Vega
88ca711d6a
Change translate to use the (limited) translatable language list.
2009-03-11 13:37:25 -04:00
James Vega
1fbf61c571
Correct parsing of defaultLanguage parameter.
2009-03-11 13:37:25 -04:00
James Vega
62a8306fbb
Rewrite most of Google to use the new AJAX API.
...
Add a translate command as well.
2009-03-11 13:37:25 -04:00
James Vega
a8a7ec56d1
Fix Google.calc ... Google changed their HTML
2007-04-25 19:06:33 +00:00
James Vega
5d954f79fe
plugins/Google: Update the URLs referencing the search API.
2006-10-02 12:51:08 +00:00
James Vega
f249946114
plugins/Google/test.py: Updated testNoNoLicenseKeyError to change the proper config variable and be safe when doing so. Also should be using a Snarf assert.
2006-05-03 14:41:11 +00:00
James Vega
a3e4fc5b1d
Change the modeline to use softtabstop instead of tabstop.
2006-02-11 15:52:51 +00:00
Jeremy Fincher
9da5d05f8f
Fixed a bug in handling of multiplication in results.
2006-01-11 13:48:46 +00:00
James Vega
d2dc42ede1
plugins/Google: Fix some formatting in Google.meta's docstring.
2005-07-25 22:05:26 +00:00
James Vega
201d4acd26
plugins/Google: Use a sensical form of English for Google.phonebook's error response.
2005-07-05 05:31:28 +00:00
Jeremy Fincher
490fb0b140
Changed prefixName to prefixNick, which is more appropriate, and has always bothered me. Better now than later.
2005-06-01 21:08:30 +00:00
Jeremy Fincher
47b42eebff
Fixed a NameError in an exception handler for a module we don't use anymore.
2005-03-28 13:19:16 +00:00
James Vega
9c7c384d22
Google.metagoogle -> Google.meta
2005-03-25 15:45:44 +00:00
James Vega
9971e991fe
Fix the modelines.
2005-03-23 20:07:45 +00:00
James Vega
aefcd594df
Move structures to utils/
2005-03-12 18:01:47 +00:00
Jeremy Fincher
ff8728b6c1
Moved the titleSnarfer to Web, so we need to insist that we're called before that instead.
2005-02-18 18:46:57 +00:00
Jeremy Fincher
156084c225
Fixed some bugs introduced with the latest refactoring of callCommand, etc.
2005-02-17 22:39:44 +00:00
Jeremy Fincher
2693d404b4
Refactored _callCommand to put it in its appropriate place.
2005-02-16 02:17:05 +00:00
Jeremy Fincher
b0cb616709
Changed callbacks.Privmsg to be callbacks.Plugin, and callbacks.PrivmsgCommandAndRegexp to be callbacks.Plugin.
2005-02-09 07:04:04 +00:00
Jeremy Fincher
e13c958c9d
I was tired of that stupid warning.
2005-02-02 21:05:25 +00:00
Jeremy Fincher
7b2dbcf6c4
DOTS!
2005-02-02 04:40:00 +00:00
Jeremy Fincher
7313ae3b76
Added Google in the new plugin format.
2005-02-01 12:09:12 +00:00