summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean B. Palmer <http://inamidst.com/sbp/>2008-03-02 14:17:07 +0000
committerSean B. Palmer <http://inamidst.com/sbp/>2008-03-02 14:17:07 +0000
commitd7e909a06179e61fd33b59c93fc9ba9ef7a0e2c4 (patch)
tree8df153ec4ae12b73d21204ddc5b73ac644d5a018
parent23c1dffa101536889dd6bcef198233ee980add7f (diff)
downloadbot-d7e909a06179e61fd33b59c93fc9ba9ef7a0e2c4.tar.gz
bot-d7e909a06179e61fd33b59c93fc9ba9ef7a0e2c4.tar.bz2
bot-d7e909a06179e61fd33b59c93fc9ba9ef7a0e2c4.zip
Updated the Wikipedia search component.
-rwxr-xr-xmodules/wikipedia.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/wikipedia.py b/modules/wikipedia.py
index cb9cf6b..5489872 100755
--- a/modules/wikipedia.py
+++ b/modules/wikipedia.py
@@ -43,13 +43,13 @@ def text(html):
return unescape(html).strip()
def search(term):
- try: import google
+ try: import search
except ImportError, e:
print e
return term
term = term.replace('_', ' ')
- try: uri = google.google('site:en.wikipedia.org %s' % term)
+ try: uri = search.result('site:en.wikipedia.org %s' % term)
except IndexError: return term
if uri:
return uri[len('http://en.wikipedia.org/wiki/'):]