mirror of
https://github.com/searxng/searxng.git
synced 2025-08-28 06:16:48 +02:00
[fix] unused globals removed
This commit is contained in:
parent
84c3251bdc
commit
66f02dc2b6
7 changed files with 0 additions and 8 deletions
|
@ -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"]'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue