Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
147f40c3
Commit
147f40c3
authored
Nov 28, 2019
by
Markus Heiser
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/asciimoo/searx
into boilerplate
parents
62a4b744
8721be2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
framalibre.py
searx/engines/framalibre.py
+4
-1
settings.yml
searx/settings.yml
+1
-1
webapp.py
searx/webapp.py
+4
-1
No files found.
searx/engines/framalibre.py
View file @
147f40c3
...
...
@@ -10,7 +10,10 @@
@parse url, title, content, thumbnail, img_src
"""
from
cgi
import
escape
try
:
from
cgi
import
escape
except
:
from
html
import
escape
from
lxml
import
html
from
searx.engines.xpath
import
extract_text
from
searx.url_utils
import
urljoin
,
urlencode
...
...
searx/settings.yml
View file @
147f40c3
...
...
@@ -744,7 +744,7 @@ engines:
title_xpath
:
./h2
content_xpath
:
./p[@class="s"]
suggestion_xpath
:
/html/body//div[@class="top-info"]/p[@class="top-info spell"]/a
first_page_num
:
1
first_page_num
:
0
page_size
:
10
disabled
:
True
...
...
searx/webapp.py
View file @
147f40c3
...
...
@@ -41,7 +41,10 @@ except:
logger
.
critical
(
"cannot import dependency: pygments"
)
from
sys
import
exit
exit
(
1
)
from
cgi
import
escape
try
:
from
cgi
import
escape
except
:
from
html
import
escape
from
datetime
import
datetime
,
timedelta
from
time
import
time
from
werkzeug.contrib.fixers
import
ProxyFix
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment