on master help sign in
Merge pull request #1366 from kvch/fix-etymonline-engine

Fix etymonline engine

commitb8978b4bbf20eaf6dee1c3e63330a39eae76dfc8 authorAdam Tauber <asciimoo@gmail.com> dateSat 11 Aug 2018, 17:01 (8 years ago) parenteea2e8e5eeb3f2
1 file changed+3−4
searx/settings.yml+3−4
searx/settings.yml+3−4
@@ -192,10 +192,9 @@ engines:
192192 engine : xpath
193193 paging : True
194194 search_url : http://etymonline.com/?search={query}&p={pageno}
195− url_xpath : //dt/a[1]/@href
196− title_xpath : //dt
197− content_xpath : //dd
198− suggestion_xpath : //a[@class="crossreference"]
195+ url_xpath : //a[contains(@class, "word--")]/@href
196+ title_xpath : //p[contains(@class, "word__name--")]/text()
197+ content_xpath : //section[contains(@class, "word__defination")]/object
199198 first_page_num : 0
200199 shortcut : et
201200 disabled : True