mirror of https://github.com/searxng/searxng.git
Merge pull request #2556 from dalf/fix-apk-mirror
[fix] fix apk_mirror engine
This commit is contained in:
commit
eafd27f42a
|
@ -45,7 +45,7 @@ def response(resp):
|
||||||
dom = html.fromstring(resp.text)
|
dom = html.fromstring(resp.text)
|
||||||
|
|
||||||
# parse results
|
# parse results
|
||||||
for result in eval_xpath_list(dom, './/div[@id="content"]/div[@class="listWidget"]/div[@class="appRow"]'):
|
for result in eval_xpath_list(dom, './/div[@id="content"]/div[@class="listWidget"]//div[@class="appRow"]'):
|
||||||
|
|
||||||
link = eval_xpath_getindex(result, './/h5/a', 0)
|
link = eval_xpath_getindex(result, './/h5/a', 0)
|
||||||
url = base_url + link.attrib.get('href') + '#downloads'
|
url = base_url + link.attrib.get('href') + '#downloads'
|
||||||
|
|
Loading…
Reference in New Issue