def google_ru(self, query):
return "http://www.google.ru/search?hl=ru&ie=utf-8&oe=utf-8&q=%s" % quote_string(query)
+ def lurkmoar(self, query):
+ return "https://lurkmore.to/%s" % quote_string(query.replace(' ', '_'), ext_safe=',')
+
def quote_string(s, to_encoding="utf-8", ext_safe=''):
return urllib.quote(unicode(s, "utf-8").encode(to_encoding), '/' + ext_safe)