mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-11-18 16:47:22 +01:00
Google: Add warning about deprecation.
This commit is contained in:
parent
de290d12f3
commit
b6695172c8
@ -94,8 +94,7 @@ class Google(callbacks.PluginRegexp):
|
|||||||
|
|
||||||
_gsearchUrl = 'https://www.google.com/search'
|
_gsearchUrl = 'https://www.google.com/search'
|
||||||
def search(self, query, channel, options={}):
|
def search(self, query, channel, options={}):
|
||||||
"""Perform a search using Google's AJAX API.
|
"""search("search phrase", options={})
|
||||||
search("search phrase", options={})
|
|
||||||
|
|
||||||
Valid options are:
|
Valid options are:
|
||||||
smallsearch - True/False (Default: False)
|
smallsearch - True/False (Default: False)
|
||||||
@ -103,6 +102,12 @@ class Google(callbacks.PluginRegexp):
|
|||||||
language - Restrict search to documents in the given language
|
language - Restrict search to documents in the given language
|
||||||
(Default: "lang_en")
|
(Default: "lang_en")
|
||||||
"""
|
"""
|
||||||
|
self.log.warning('The Google plugin search is deprecated since '
|
||||||
|
'Google closed their public API and will be removed in a '
|
||||||
|
'future release. Please consider switching to an other '
|
||||||
|
'plugin for your searches, like '
|
||||||
|
'<https://github.com/Hoaas/Supybot-plugins/tree/master/DuckDuckGo>, '
|
||||||
|
'or <https://github.com/joulez/GoogleCSE>.')
|
||||||
ref = self.registryValue('referer')
|
ref = self.registryValue('referer')
|
||||||
if not ref:
|
if not ref:
|
||||||
ref = 'http://%s/%s' % (dynamic.irc.server,
|
ref = 'http://%s/%s' % (dynamic.irc.server,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user