Noémi Ványi
c6ed0dae6c
fix google play movies xpath
преди 8 години
Adam Tauber
e12ea9a510
Merge branch '500px_rewrite' of github.com:asciimoo/searx
преди 8 години
Adam Tauber
9b2bd6847f
[fix] 500px unit tests
преди 8 години
Adam Tauber
4676e1dcde
[fix] remove result escaping from engine
преди 8 години
Adam Tauber
1a82ed6f54
[mod] 500px rewrite
преди 9 години
Adam Tauber
f6e9c074bb
[fix] vimeo engine change follow-up
преди 8 години
Adam Tauber
a2c94895c1
[fix] google news engine change follow-up
преди 8 години
Adam Tauber
a764ebb4b1
[enh] extend json response with suggestions, infoboxes and answers
преди 8 години
Adam Tauber
c3dcebb778
[fix] remove html tags from qwant results
преди 8 години
Adam Tauber
be6ae81cb2
Merge pull request #776 from asciimoo/voat-engine
add voat.co engine
преди 8 години
Adam Tauber
e12a137a2f
[fix] unicode response in deezer and spotify
преди 8 години
Adam Tauber
75aa46a6b3
[fix] remove unused variable
преди 8 години
Adam Tauber
0205838f25
[enh] handle engine response crashes
преди 8 години
Adam Tauber
ceb8ae6439
Merge pull request #751 from dalf/searchpy2
Simplify search.py
преди 8 години
Alexandre Flament
e48f07a367
Merge branch 'master' into searchpy2
преди 8 години
Adam Tauber
d80fb2c8e8
[enh] central handling of empty result titles
преди 8 години
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 години
Adam Tauber
8116e341cc
[fix] kickass test html escaping
преди 8 години
Adam Tauber
fdf63940e8
[fix] tests ++ flickr error
преди 8 години
Adam Tauber
ef2ef7974a
[enh] central html escaping of results
преди 8 години
Adam Tauber
7e1f27e459
[enh] add author to image result content
преди 8 години
Adam Tauber
39f5035e13
[fix] query escaping in rss/opensearch output
преди 8 години
Adam Tauber
16bdc0baf4
[mod] do not escape html content in engines
преди 8 години
Adam Tauber
28f12ef5a0
[fix] proper escaping of the search query in templates
преди 8 години
Adam Tauber
7986d4cf41
[fix] correct path for autoscroll on non-root urls
closes #758
преди 8 години
Noémi Ványi
3007e4e451
add voat.co engine
преди 8 години
Adam Tauber
0724bd8168
[fix] pep8
преди 8 години
Adam Tauber
7eed8a5dd9
[enh] add statistics answerer
преди 8 години
Adam Tauber
971ed0abd1
[enh] add quick answer functionality with an example answerer
преди 8 години
Adam Tauber
55dc538398
[mod] move load_module function to utils
преди 8 години
Adam Tauber
827f9e41ca
[fix] gettext requires request.preferences
преди 8 години
Adam Tauber
028e5b43d4
Merge pull request #764 from kvch/set-search-language-from-settings-yml
set search language from settings.yml
преди 8 години
Noémi Ványi
299c882304
search: make language configurable from settings.yml
преди 8 години
Noémi Ványi
12c369e858
preferences: refactor to check consistently input values
преди 8 години
Adam Tauber
044809e298
[fix] search mocking in webapp test
преди 8 години
Adam Tauber
a757c2f005
[fix] remove unused imports
преди 8 години
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 години
Adam Tauber
88dfee858e
[fix] rewrite missing variable
преди 8 години
Adam Tauber
96f182d75d
[fix] allow empty autocomplete setting
closes #756
closes #761
преди 8 години
Adam Tauber
43ddbc60da
[fix] pep8
преди 8 години
Adam Tauber
16f2e346b3
[fix] bing unicode issue part III.
преди 8 години
Adam Tauber
94196c4b6c
[enh] show traceback of search errors
преди 8 години
Adam Tauber
1176505fa4
[fix] bing character encoding - closes #760
преди 8 години
Adam Tauber
17b08d096c
[fix] unicode search expression for bing
преди 8 години
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 години
Alexandre Flament
219f047bf3
Merge branch 'master' into searchpy2
преди 8 години
Adam Tauber
7d26b3f8f8
[fix] suspend end time check
преди 8 години
Adam Tauber
6c7c6ba695
Merge pull request #753 from kvch/lobsters-engine
add lobste.rs xpath engine
преди 8 години
Noémi Ványi
c7906555a0
add lobste.rs xpath engine
преди 8 години
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 години