From 144b7be70d60fd79ab9b748980ee1bb82912839c Mon Sep 17 00:00:00 2001 From: David A Roberts Date: Thu, 14 Jul 2016 19:38:41 +1000 Subject: [PATCH] Add Google Scholar search engine --- AUTHORS.rst | 1 + searx/settings.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index 5bc6807a9..f3e875ada 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -51,3 +51,4 @@ generally made searx better: - Ashutosh Das @pyprism - YuLun Shih @imZack - Dmitry Mikhirev @mikhirev +- David A Roberts `@davidar `_ diff --git a/searx/settings.yml b/searx/settings.yml index d64b73a17..e578dacc3 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -200,6 +200,20 @@ engines: engine : google_news shortcut : gon + - name : google scholar + engine : xpath + paging : True + search_url : https://scholar.google.com/scholar?start={pageno}&q={query}&hl=en&as_sdt=0,5&as_vis=1' + results_xpath : //div[@class="gs_r"]/div[@class="gs_ri"] + url_xpath : .//h3/a/@href + title_xpath : .//h3/a + content_xpath : .//div[@class="gs_rs"] + suggestion_xpath : //div[@id="gs_qsuggest"]/ul/li + page_size : 10 + first_page_num : 0 + categories : science + shortcut : gos + - name : google play apps engine : xpath search_url : https://play.google.com/store/search?q={query}&c=apps