From ec4e48e5df497216930a4fd1ca183d566499dbe4 Mon Sep 17 00:00:00 2001 From: Allen <64094914+allendema@users.noreply.github.com> Date: Mon, 5 Jul 2021 00:05:59 +0200 Subject: [PATCH] [enh] Add pagination support for Library Genesis [enh] Add pagination support for Library Genesis and add it to "files" category too. --- searx/settings.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index f1e3c6bc..d5a1edd0 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -702,12 +702,14 @@ engines: - name : library genesis engine : xpath + paging : True + page_size : 25 enable_http: True - search_url : http://libgen.rs/search.php?req={query} + search_url : http://libgen.rs/search.php?req={query}&page={pageno} url_xpath : //a[contains(@href,"bookfi.net/md5")]/@href title_xpath : //a[contains(@href,"book/")]/text()[1] content_xpath : //td/a[1][contains(@href,"=author")]/text() - categories : general + categories : general, files timeout : 7.0 disabled : True shortcut : lg