1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

Merge pull request #2253 from kvch/fix-lobsters-engine

Fix XPATH of lobste.rs engine && add timeout
This commit is contained in:
Adam Tauber 2020-10-09 13:41:17 +02:00 committed by GitHub
commit 830a2e5b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -457,11 +457,13 @@ engines:
engine : xpath
search_url : https://lobste.rs/search?utf8=%E2%9C%93&q={query}&what=stories&order=relevance
results_xpath : //li[contains(@class, "story")]
url_xpath : .//span[@class="link"]/a/@href
title_xpath : .//span[@class="link"]/a
url_xpath : .//a[@class="u-url"]/@href
title_xpath : .//a[@class="u-url"]
content_xpath : .//a[@class="domain"]
categories : it
shortcut : lo
timeout : 3.0
disabled: True
- name : metager
engine : xpath