summaryrefslogtreecommitdiff
path: root/searx/engines/twitter.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-07-09 01:18:37 +0200
committerAdam Tauber <asciimoo@gmail.com>2014-07-09 01:18:37 +0200
commit66f02dc2b6b0c6127ba908ad9be3a97dfd633f7f (patch)
tree8a63e497c1e34ab642c8c34a815b15787909d987 /searx/engines/twitter.py
parent84c3251bdc86052acb8a1baf92684417eb362edc (diff)
[fix] unused globals removed
Diffstat (limited to 'searx/engines/twitter.py')
-rw-r--r--searx/engines/twitter.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/searx/engines/twitter.py b/searx/engines/twitter.py
index 23393ac4d..c05c20fc2 100644
--- a/searx/engines/twitter.py
+++ b/searx/engines/twitter.py
@@ -12,13 +12,11 @@ content_xpath = './/p[@class="js-tweet-text tweet-text"]//text()'
def request(query, params):
- global search_url
params['url'] = search_url + urlencode({'q': query})
return params
def response(resp):
- global base_url
results = []
dom = html.fromstring(resp.text)
for tweet in dom.xpath('//li[@data-item-type="tweet"]'):