Commit Graph

1735 Commits (3bd5ce65950cb86ec678ff3d074635638d63fb5d)

Author SHA1 Message Date
Adam Tauber 0205838f25 [enh] handle engine response crashes 8 years ago
Alexandre Flament e48f07a367 Merge branch 'master' into searchpy2 8 years ago
Adam Tauber d80fb2c8e8 [enh] central handling of empty result titles 8 years ago
Adam Tauber 72a217f983 [mod] return empty string on missing osm title
Sometimes openstreetmap returns with None as title. In these cases use an empty
string instead.
8 years ago
Adam Tauber fdf63940e8 [fix] tests ++ flickr error 8 years ago
Adam Tauber ef2ef7974a [enh] central html escaping of results 8 years ago
Adam Tauber 7e1f27e459 [enh] add author to image result content 8 years ago
Adam Tauber 39f5035e13 [fix] query escaping in rss/opensearch output 8 years ago
Adam Tauber 16bdc0baf4 [mod] do not escape html content in engines 8 years ago
Adam Tauber 28f12ef5a0 [fix] proper escaping of the search query in templates 8 years ago
Adam Tauber 7986d4cf41 [fix] correct path for autoscroll on non-root urls
closes #758
8 years ago
Noémi Ványi 3007e4e451 add voat.co engine 8 years ago
Adam Tauber 0724bd8168 [fix] pep8 8 years ago
Adam Tauber 7eed8a5dd9 [enh] add statistics answerer 8 years ago
Adam Tauber 971ed0abd1 [enh] add quick answer functionality with an example answerer 8 years ago
Adam Tauber 55dc538398 [mod] move load_module function to utils 8 years ago
Adam Tauber 827f9e41ca [fix] gettext requires request.preferences 8 years ago
Noémi Ványi 299c882304 search: make language configurable from settings.yml 8 years ago
Noémi Ványi 12c369e858 preferences: refactor to check consistently input values 8 years ago
Adam Tauber a757c2f005 [fix] remove unused imports 8 years ago
Adam Tauber 832cf37a97 [enh] display errors
also tried flask's flash feature but flask creates session cookies if it
isn't flushed. Avoiding session cookies to preserve privacy
8 years ago
Adam Tauber 88dfee858e [fix] rewrite missing variable 8 years ago
Adam Tauber 96f182d75d [fix] allow empty autocomplete setting
closes #756
closes #761
8 years ago
Adam Tauber 43ddbc60da [fix] pep8 8 years ago
Adam Tauber 16f2e346b3 [fix] bing unicode issue part III. 8 years ago
Adam Tauber 94196c4b6c [enh] show traceback of search errors 8 years ago
Adam Tauber 1176505fa4 [fix] bing character encoding - closes #760 8 years ago
Adam Tauber 17b08d096c [fix] unicode search expression for bing 8 years ago
Adam Tauber 16ff8d06c7 [fix] bing paging and language support
see https://msdn.microsoft.com/en-us/library/ff795620.aspx for bing
specific search operators

closes #755
8 years ago
Alexandre Flament 219f047bf3 Merge branch 'master' into searchpy2 8 years ago
Adam Tauber 7d26b3f8f8 [fix] suspend end time check 8 years ago
Noémi Ványi c7906555a0 add lobste.rs xpath engine 8 years ago
Alexandre Flament 01e2648e93 Simplify search.py, basically updated PR #518
The timeouts in settings.yml is about the total time (not only the HTTP request but also the prepare the request and parsing the response)
It was more or less the case before since the threaded_requests function ignores the thread after the timeout even the HTTP request is ended.

New / changed stats :
* page_load_time : record the HTTP request time
* page_load_count: the number of HTTP request
* engine_time : the execution total time of an engine
* engine_time_count : the number of "engine_time" measure

The avg response times in the preferences are the engine response time (engine_load_time / engine_load_count)

To sum up :
* Search.search() filters the engines that can't process the request
* Search.search() call search_multiple_requests function
* search_multiple_requests creates one thread per engine, each thread runs the search_one_request function
* search_one_request calls the request function, make the HTTP request, calls the response function, extends the result_container
* search_multiple_requests waits for the the thread to finish (or timeout)
8 years ago
Alexandre Flament 58a6c045c8 [mod] replace references request.request_data (GET or POST parameters) by request.form (based on merge of POST and GET parameters) 8 years ago
dalf fbb080f358 Change plugin API :
- pre_search(request, search)
- post_search(request, search)
- on_result(request, search, result)

with
- request is the Flask request
- search a searx.Search instance
- result a searx result as usual
8 years ago
dalf 67e11c42b9 Clean up the architecture
Purposes :
- isolate the plugins calls
- distinction between parsing the web request and running the search (Search class). To be able to test code easily, to run searx code outside a web server, to filter the search query parameters with plugins more easily, etc...

Details :
- request.request_data contains request.form or request.args (initialize inside pre_request() function)
- Query class is renamed RawTextQuery
- SearchQuery class defines all search parameters
- get_search_query_from_webapp create a SearchQuery instance (basically the previous Search.__init__ code)
- Search class and SearchWithPlugins class takes a SearchQuery instance as class constructor parameter
- SearchWithPlugins class inherites from Search class, and run plugins
- A dedicated function search_with_plugins executes plugins to have a well define locals() (which is used by the plugins code).
- All plugins code is executed inside the try...except block (webapp.py, index function)
- advanced_search HTTP parameter value stays in webapp.py (it is only part of UI)
- multiple calls to result_container.get_ordered_results() doesn't compute the order multiple time (note : this method was call only once before)
- paging value is stored in the result_container class (compute in the extend method)
- test about engine.suspend_end_time is done during search method call (instead of __init__)
- check that the format parameter value is one of these : html, rss, json, rss (before the html value was assumed but some text formatting wasn't not done)
8 years ago
Adam Tauber 142cd87095 [fix] menu style in pointhi oscar theme 8 years ago
Adam Tauber 9782633054 [fix] menu without js - closes #747 8 years ago
Noémi Ványi 1490d6bc93 add time range search for flickr 8 years ago
Noémi Ványi 5c02b9ef31 add time range support for bing images 8 years ago
Noémi Ványi d2e0cbafb2 add time range search for youtube noapi 8 years ago
Noémi Ványi f70d405202 add time range search for bing news 8 years ago
Noémi Ványi e3d748ded4 show time range support in preferences 8 years ago
Adam Tauber 6243639f01 [mod] do not proxify images if image proxy is not set 8 years ago
Noémi Ványi 6334fca11c add version info to config endpoint 8 years ago
Adam Tauber 1b9045ed89 [enh] use morty proxy for image proxification too if it is configured 8 years ago
Adam Tauber a67a4bf2c0 [enh] allow morty proxy without hmac key 8 years ago
Adam Tauber 574d9d40d2 Merge pull request #697 from Eig8phei/http1.1
serve pages with HTTP/1.1
8 years ago
dalf 3e7554422b [mod] the environment variable SEARX_DEBUG can override the general.debug value in settings.yml 8 years ago
Adam Tauber e249698b26 Merge pull request #737 from dalf/ixquick
[fix] ixquick : fetch results from ixquick.eu instead of ixquick.com
8 years ago
dalf 972f32d973 [fix] ixquick : fetch results from ixquick.eu instead of ixquick.com, close #727 8 years ago
Noémi Ványi db8c2ebc3f [fix] images modal with infinite scroll 8 years ago
Adam Tauber 760cb3c5af Merge pull request #734 from dalf/seeks_url
[fix] seeks URLS, close #731
8 years ago
Alexandre Flament a88768efd8 Merge branch 'master' into http1.1 8 years ago
Noémi Ványi 53c9fde992 fix kickass torrents engine 8 years ago
Adam Tauber 218857999e Merge pull request #726 from mmuman/opensearch_shortname
[fix] set the title on the opensearch link tag
8 years ago
Adam Tauber d5c0dcd18a [fix] unicode url proxiing 8 years ago
Adam Tauber 1be6e72d51 [enh] add result proxy support - #707 8 years ago
Adam Tauber 19a6ca0b68 [enh] use HMAC for image proxy url verification 8 years ago
Alexandre Flament 5b21a7fb65 Merge branch 'master' into opensearch_shortname 8 years ago
dalf cae84e71a5 [fix] seeks URLS, close #731 8 years ago
Alexander Minges 3c5883408c initial commit of pdbe engine
Adds support for queries to the Protein Data Bank Europe (PDBe).
8 years ago
François Revol 96cfdc77d2 [fix] set the title on the opensearch link tag
Firefox uses the title attributes instead of the ShortName from the xml file
as set in 0fbd7052 which closed #405
8 years ago
Pydo beff8c6007 Merge branch 'master' of https://github.com/asciimoo/searx into feature/seedpeer-engine-integration 8 years ago
Pydo 01844b6f04 Set default categories for seedpeer provider 8 years ago
Adam Tauber dceb903114 [mod] disallow search results for robots 8 years ago
Pydo 55a5b686ed Merge branch 'master' of https://github.com/asciimoo/searx into feature/seedpeer-engine-integration
Resolved conflict searx/settings.yml
8 years ago
Pydo 6f87bf2a1c Disabled seepeer.eu by default since it does not support https 8 years ago
Adam Tauber 812ade82b1 [fix] robot test engine names 8 years ago
Adam Tauber 86daef2063 [fix] do not allow underscore in engine names - closes #708 8 years ago
Adam Tauber bee7b497a3 [mod] rename "default" theme to "legacy" 8 years ago
marc d1d4ed4376 [fix] results with digbit don't truncate anymore 8 years ago
Eig8phei f90eb428c6 serve pages with HTTP/1.1 8 years ago
Lorenzo J. Lucchini 2bc42b378d Remove unrelated change that mistakenly ended up into this branch 8 years ago
firebovine e145fdb86d #607 - noapi fix 8 years ago
Lorenzo J. Lucchini 05206f86e3 Adding Urban Dictionary xpath engine 8 years ago
Lorenzo J. Lucchini a8907224a1 Improving Wolfram Alpha search hit content
Making WA search hits contain
- the (parsed) input inside the "title" instead of just "Wolfram|Alpha", to better match other hit titles and to confirm correct parsing of input to the user
- the first output field that contains any text (skipping ones that are only pictures; this is usually the most meaningful "result" field) instead of the raw input as the "content", making it additionally possible to obtain WA computations from JSON API calls
8 years ago
marc 09ee2aa69d [fix] Result text in Wolfram|Alpha (#607) 8 years ago
firebovine baeb3ff911 fix xpath expressions for urban dictionary 8 years ago
Adam Tauber 8d4dd3c515 [fix] 404 HTTP status on not found pages - closes #681 8 years ago
Adam Tauber ce371f766a [enh] version 0.10.0
closes #659
8 years ago
Adam Tauber ea19e19ff2 [enh] translation updates 8 years ago
Adam Tauber 3144ec1d59 [fix] unicode urls 8 years ago
potato 983415bc38 [enh] is_valid_lang moved to utils 8 years ago
potato b7d578ae80 [enh] engine header comments 8 years ago
potato 5ed9846bbf [fix] revert the port change 8 years ago
potato 8c72a22757 [enh] api_key usage, disable the engine by default 8 years ago
potato c051e6a2c3 [fix] pep8 8 years ago
potato ab471fd13b [enh] mymemory translated engine added for multi-word translations 8 years ago
potato 22bd39fd42 [fix] only 1-word search triggers the engine 8 years ago
potato 7bf1013c15 [enh] removed missing params; [fix] pep8 8 years ago
potato bc806bfab1 [fix] no lambda anymore, cgi.escape 8 years ago
potato 5416f0f248 [enh] dictionary engine renamed to dictzone 8 years ago
potato 84ff6e289e [enh] filter non-existing language code/name containing requests 8 years ago
potato b808a2e266 [fix] don't merge with suggestions 8 years ago
potato 3f4cc2146c [enh] return results instead of answers 8 years ago
potato 9d08c81f47 Merge branch 'master' of https://github.com/asciimoo/searx 8 years ago
potato f4525880ed [enh] dictionary engine added 8 years ago
Adam Tauber 55abf07a4f [fix] thread safe threaded_requests() function 8 years ago
Adam Tauber b816752719 [enh] more compact image results ++ fixed modal links 8 years ago
Adam Tauber 3a1b6fa818 [fix] replace modal-content class to prevent remote content load
details: http://stackoverflow.com/questions/18378720/bootstrap-3-with-remote-modal
8 years ago
Adam Tauber fa5bc3a563 [fix] use threading to recover after incomplete request crashes - closes #651 #662 8 years ago
Adam Tauber b27f07af23 [enh] socks proxy support 8 years ago
Adam Tauber da4f1c2512 [mod] truncate result content in html - closes #224 8 years ago
Adam Tauber 94b5f2ca77 [fix] result url wrap - closes #652 8 years ago
Adam Tauber 959497e26b [fix] remove trailing whitespaces 8 years ago
Pydo 41ce76e9c9 Merge branch 'master' of https://github.com/asciimoo/searx into feature/seedpeer-engine-integration 8 years ago
Pydo 2c2123b2e8 Added seepeer to config and added seepeer search parser 8 years ago
Adam Tauber 465d47283f [fix] 404 page localization #2 8 years ago
Adam Tauber c2f4d4449d [fix] 404 page localization 8 years ago
Adam Tauber b4b0231617 [fix] links in new tabs without js ++ noopener bug fix - closes #674 8 years ago
Adam Tauber 7591c8bfe3 Merge pull request #672 from kvch/self-info-paging
Self information on later pages
8 years ago
Adam Tauber 3043c404e4 Merge pull request #671 from kvch/custom-404
Custom 404 message - fixes #317
8 years ago
Noemi Vanyi aa227180e2 remove self info answers from pages after first one 8 years ago
Noemi Vanyi 0056c4035e add custom 404 page 8 years ago
Adam Tauber b72aec0a9b [fix] remove btdigg - see https://torrentfreak.com/btdigg-shut-down-due-to-torrent-spam-for-now-160711/ 8 years ago
Adam Tauber 32604be790 [fix] piratebay engine - using pirateproxy.red - see https://proxybay.tv/ 8 years ago
Adam Tauber f693a54ad7 Merge pull request #664 from kvch/uncapitalize-searx
uncapitalize searx in templates
8 years ago
Adam Tauber 13bed1f872 Merge pull request #639 from kvch/digbt-engine
add digbt engine - fixes #638
8 years ago
Noémi Ványi 4bd44cd98f uncapitalize searx in templates 8 years ago
David A Roberts 45120bc711 Add Hoogle search engine 8 years ago
David A Roberts 1e9dab08e6 [fix] behaviour for page_size>1 and first_page_num>0
eg. pageno=1,21,41,... instead of 20,40,60,...
8 years ago
David A Roberts 413e143707 [fix] don't merge results with distinct fragments 8 years ago
David A Roberts ee320d4e5b Online Etymology Dictionary 8 years ago
Noémi Ványi d320dd0efc diable digbt engine in settings.yml 8 years ago
Noemi Vanyi 3a1c5876b1 add digbt engine
Unfortunately, it is quite slow so it is disabled.
Furthermore, the display of number of files is wrong
on digbt.org, so it is not displayed on searx.
8 years ago
Adam Tauber 104cdb7d03 [fix] remove unused imports ++ int token timestamp by default 8 years ago
Adam Tauber eb57481450 [fix] google images paging - closes #571 8 years ago
David A Roberts 61fe5daf30 Add Microsoft Academic search engine 8 years ago
Adam Tauber 31866d9f33 Merge pull request #629 from stepshal/E305
Add missing blank lines after class or function definition.
8 years ago
stepshal 7e16c9d360 Add missing blank lines after class or function definition. 8 years ago
Adam Tauber 827aba4599 Merge pull request #658 from davidar/scroll
[enh] infinite scroll
8 years ago
David A Roberts 678b9e994a [enh] infinite scroll
resolves #649
8 years ago
Adam Tauber 4fae62cd88 Merge pull request #656 from cy8aer/openrepos
openrepos: Meego/Sailfish application repository
8 years ago
Adam Tauber 975bd5beb5 [fix] oscar grunt css build 8 years ago
David A Roberts 4ffe18b4bb [fix] delete trailing quote 8 years ago
David A Roberts 117d36b66e Add Crossref search engine and DOAI rewrite plugin 8 years ago
Noémi Ványi e7f93f4f12 set type of cursor to pointer in advanced search 8 years ago
Thomas Renard 9c18abfe5a openrepos: Meego/Sailfish application repository 8 years ago
Adam Tauber f1262ffa9e Merge pull request #588 from a01200356/wikidata
[enh] More data from Wikidata
8 years ago
Noemi Vanyi c59ef83353 redesign toggle button of engines && plugins 8 years ago
marc ad58b14be7 [fix] merge infoboxes based on weight
also minor changes in attributes and images from wikidata
8 years ago
marc c2e4014287 [fix] urls merge in infobox (#593)
TODO:
    merge attributes
8 years ago
marc a0a1284998 wikidata refactor and more attributes (see issue #560) 8 years ago
marc a4c77f88d0 [fix] exception if locale doesn't have a date format
occitan, for example
8 years ago
a01200356 93ef11adc0 [enh] multilingual wikidata
disambiguation and tags are in local language

TOFIX:
    needs to query the api every time to know each label's name
8 years ago
Adam Tauber c553523f5b Merge pull request #645 from dalf/remove_kickass
[mod] remove the kickass engine from settings.yml
8 years ago
Adam Tauber ffbee4bb82 [fix] collect garbage after searches to reduce memory footprint 8 years ago
Adam Tauber bf92aa3fdd [fix] wrap categories on small screens ++ some code formatting - closes #647 8 years ago
Adam Tauber 350a84520d [fix] time range detection 8 years ago
Adam Tauber 3a8d193d1f [mod] disable ddg by default - it just proxies yahoo/bing results: https://duck.co/help/company/yahoo-partnership 8 years ago
Adam Tauber 7d9c898170 Merge pull request #634 from kvch/advanced-search
support time range search
8 years ago
Noemi Vanyi 90e74fbb28 search on filter select 8 years ago
Adam Tauber 54d987636e [fix] do not load engines which cannot be initialized - closes #585 8 years ago
Noemi Vanyi 16a8641649 advanced-search: panel is visible when checked before 8 years ago
Noemi Vanyi 128b5245ab time range selection as dropdown 8 years ago
Noemi Vanyi e046c0d7ae add time range strings to be translated 8 years ago
Noemi Vanyi cddc9d3792 add 'Advanced settings' to strings to be translated 8 years ago
Noemi Vanyi a7c8d5882c fix pep8 8 years ago
Noemi Vanyi e7baf24ec1 add time range search for deviantart 8 years ago
Noemi Vanyi e9a78f1434 add time range search for google images 8 years ago
Noemi Vanyi f13b9fa36a add time range search for duckduckgo 8 years ago
Noemi Vanyi 2e5839503f add time range search for google 8 years ago
Noemi Vanyi 713d30400b add advanced settings to pointhi style 8 years ago
Noemi Vanyi 074521fd8a follow up changes in search_category_on_select 8 years ago
Noemi Vanyi 2e8ab34d76 add advanced settings for logicodev style 8 years ago
Noemi Vanyi 93c0c49e9a add time range search with yahoo 8 years ago
Adam Tauber 3a9c3fbd68 Merge pull request #644 from dalf/logicodev_fix
[fix] close #637 : the search box doesn't overlap the menu.
8 years ago
Harry Wood cd072676e9 moving a comma 8 years ago
Alexandre Flament bd4d904002 [mod] remove the kickass engine from settings.yml 8 years ago
Alexandre Flament e655e44133 [fix] close #637 : the search box doesn't overlap the menu. 8 years ago
Alexandre Flament 34835b77e2 [fix] Close #640 : remove MapQuest maps. Add in comment maps.wikimedia.org maps, see https://www.mediawiki.org/wiki/Maps 8 years ago
Noemi Vanyi ba590de7f1 [fix] deviantart engine xpaths 8 years ago
Adam Tauber aa09f963eb Merge pull request #621 from stepshal/anomalous-backslash-in-string
Fix anomalous backslash in string
8 years ago
Adam Tauber 21c5fb1c45 [fix] pep8 8 years ago
Adam Tauber a7260ac497 [fix] do not replace image href urls - closes #594
These lines were added to fix a js image load issue (#535) what i cannot reproduce.
Hopefully we don't see it again
8 years ago
Adam Tauber 5b5478bbd9 [fix] compute the order of results only once per search 8 years ago
Adam Tauber 485da54961 [mod][fix] use the average of results number ++ do not display smaller result number than the actual result count - closes #600 8 years ago
David A Roberts 144b7be70d Add Google Scholar search engine 8 years ago
Adam Tauber f7a3e9771d Merge pull request #615 from mmuman/scanr
Add ScanR structures search engine
8 years ago
marc aac4ed6971 [fix] guess country code if not specified in duckduckgo engine 8 years ago
a01200356 8fc4b8156a [fix] multilingual duckduckgo
only works if both country and language are set
8 years ago
François Revol 1dba6dcbac Add ScanR structures search engine
In theory ScanR should also search for projects but the API is different,
so we'd need another engine.
8 years ago
stepshal b3ab221b98 Fix anomalous backslash in string 8 years ago
stepshal cd9b494cb5 Fix quantity of blank lines after code object. 8 years ago
François Revol b538de568a Add INA search engine 8 years ago
Adam Tauber fbbb307f2e [enh] add engine shortcut to config api 8 years ago
Adam Tauber 9f64fd6745 [enh] update useragent versions 8 years ago
Adam Tauber 257e52954a [enh][fix] update to latest dependencies ++ fix tests & travis test runner
WARNING: dependency changes
8 years ago
Noemi Vanyi c428f2d980 [fix] remove unecessary capitalize of name of instance 8 years ago
Adam Tauber 5924abd483 [fix] mobile navbar errors - closes #596 8 years ago
Adam Tauber 8ee32d5372 [fix] hide number of results if 0 8 years ago
Adam Tauber 2f7752b410 [enh] display number of results 8 years ago
Adam Tauber 36c8977390 [fix] rtl result template 8 years ago
Adam Tauber 1ee2a3d25d [mod] more compact logicodev skin 8 years ago
Adam Tauber 0c9c063141 [fix] result url block selection 8 years ago
Adam Tauber 7013c3dc0d [fix] logo responsivity ++ preferences button hover 8 years ago
Adam Tauber f496dc353d [enh] oscar theme redesign added
The original code made by @logico-dev (#559)
8 years ago
Adam Tauber 237d251d14 [fix] save unknown preferences parameters to cookies
Without this courgette color selector can not work
8 years ago
Adam Tauber 5dd2340bc6 [fix] gigablast redirect - closes #575 8 years ago