summaryrefslogtreecommitdiff
path: root/searx
AgeCommit message (Collapse)Author
2021-04-10[enh] replace requests by httpxAlexandre Flament
2021-04-08Merge pull request #2735 from plague-doctor/wordnikNoémi Ványi
Add new engine: Wordnik.com
2021-04-08Add new engine: Wordnik.comPlague Doctor
2021-04-07[fix] fix PR 2656Alexandre Flament
SCRIPT_NAME remove trailing slash to avoid infinite redirect
2021-04-06Add Meilisearch engineNoémi Ványi
Website: https://www.meilisearch.com/
2021-04-05Merge pull request #2728 from return42/fix-loaderNoémi Ványi
[fix] settings_loader.py - use update_dict only for mapping types
2021-04-06Remove hubsbpot tracking URL params3nprob
More information here: https://knowledge.hubspot.com/settings/how-do-i-create-a-tracking-url https://knowledge.hubspot.com/ads/ad-tracking-in-hubspot https://knowledge.hubspot.com/ctas/calls-to-action-frequently-asked-questions https://meta.stackexchange.com/questions/263392/what-are-these-very-long-parameters-in-so-careers-feedback-always-welcome-url
2021-04-05[fix] settings_loader.py - use update_dict only for mapping typesMarkus Heiser
I can't set `default_doi_resolver` in `settings.yml` if I'm using `use_default_settings`. Searx seems to try to interpret all settings at root level in `settings.yml` as dict, which is correct except for `default_doi_resolver` which is at root level and a string:: File "/usr/lib/python3.9/site-packages/searx/settings_loader.py", line 125, in load_settings update_settings(default_settings, user_settings) File "/usr/lib/python3.9/site-packages/searx/settings_loader.py", line 61, in update_settings update_dict(default_settings[k], v) File "/usr/lib/python3.9/site-packages/searx/settings_loader.py", line 48, in update_dict for k, v in user_dict.items(): AttributeError: 'str' object has no attribute 'items' Signed-off-by: Markus Heiser <markus@darmarit.de> Suggested-by: @0xhtml https://github.com/searx/searx/issues/2722#issuecomment-813391659
2021-04-05Merge pull request #2656 from return42/fix-url_forAlexandre Flament
[fix] url_for(..., _external=True) in templates
2021-04-05[fix] url_for(..., _external=True) in templatesMarkus Heiser
The `url_for` function in the template context is not the one from Flask, it is the one from `webapp`. The `webapp.url_for_theme` is different from its namesake of Flask and has it quirks, when called with argument `_external=True`. The `webapp.url_for_theme` can't handle absolute URLs since it pokes a leading '/', here is the snippet of the old code:: url = url_for(endpoint, **values) if settings['server']['base_url']: if url.startswith('/'): url = url[1:] url = urljoin(settings['server']['base_url'], url) Next drawback of (Flask's) `_external=True` is, that it will not return the HTTP scheme when searx (the Flask app) listens on http and is proxied by a https server. To get the right scheme `HTTP_X_SCHEME` is needed by Flask (werkzeug). Since this is not provided in every environment (e.g. behind Apache mod_wsgi or the HTTP header is not fully set for some other reasons) it is recommended to get *script_name*, *server* and *scheme* from the configured `base_url`. If `base_url` is specified, then these values from are given preference over any Flask's generics. BTW this patch normalize to use `url_for` in the `opensearch.xml` and drop the need of `host` and `urljoin` in template's context. Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-04Merge pull request #2718 from return42/fix-publishedDateNoémi Ványi
[fix] publishedDate: don't try to get date from empty string or None
2021-04-04[fix] default_doi_resolver in preferencesMarkus Heiser
Instead of a hard-coded `oadoi.org` default, use the default value from `settings.yml`. Fix an issue in the themes: The replacement 'current_doi_resolver' contains the doi_resolver_url, not the name of the DOI resolver. Compare return value of:: searx.plugins.oa_doi_rewrite.get_doi_resolver(...) Fix a typo in `get_doi_resolver(..)`: suggested by @kvch: *L32 should set doi_resolver not doi_resolvers* Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-04[fix] publishedDate: don't try to get date from empty string or NoneMarkus Heiser
Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-03Merge pull request #2712 from searx/update_data_update_firefox_version.pyNoémi Ványi
Update searx.data - update_firefox_version.py
2021-04-03Merge pull request #2710 from searx/update_data_update_ahmia_blacklist.pyNoémi Ványi
Update searx.data - update_ahmia_blacklist.py
2021-04-03Merge pull request #2709 from searx/update_data_update_currencies.pyNoémi Ványi
Update searx.data - update_currencies.py
2021-04-03Merge pull request #2711 from searx/update_data_update_wikidata_units.pyNoémi Ványi
Update searx.data - update_wikidata_units.py
2021-04-03Merge pull request #2713 from searx/update_data_update_languages.pyNoémi Ványi
Update searx.data - update_languages.py
2021-04-01Update searx.data - update_languages.pydalf
2021-04-01Update searx.data - update_firefox_version.pydalf
2021-04-01Update searx.data - update_wikidata_units.pydalf
2021-04-01Update searx.data - update_ahmia_blacklist.pydalf
2021-04-01Update searx.data - update_currencies.pydalf
2021-03-28fix dark "expand" button from infoboxMarc Abonce Seguin
2021-03-27[enh] release v1.0.0v1.0.01.0.0Adam Tauber
2021-03-27[enh] update translations from transifexAdam Tauber
2021-03-27Merge pull request #2682 from dalf/fix-checkerAlexandre Flament
[fix] checker: various bug fixes
2021-03-27Merge pull request #2681 from dalf/fix-wikipedia-titleAlexandre Flament
[fix] wikipedia: remove HTML from the title
2021-03-27Remove duplicated key from dict in Semantic ScholarNoémi Ványi
2021-03-27fix Semantic Scholar engineNoémi Ványi
2021-03-27[fix] update seznam engine to be compatible with the new websiteAdam Tauber
2021-03-25[fix] checker: various bug fixesAlexandre Flament
* initialize engine_data (youtube engine) * don't crash if an engine don't set result['url']
2021-03-25[fix] wikipedia: remove HTML from the titleAlexandre Flament
fr.wikipedia.org (and it seems not other wikipedia websites), adds HTML to api_result['displayTitle']. (Search for '!wp :fr Braid' for example) The commit uses api_result['title']
2021-03-25[mod] increase lobste.rs engine timeout to avoid timeouts most of the timeAdam Tauber
2021-03-25[fix] make ina engine compatible with the new response jsonAdam Tauber
2021-03-25[fix] rewrite hoogle to use html/xpath instead of jsonAdam Tauber
the json response has been changed and it contains html chunks which is not compatible with our json engine, so we have to switch to html/xpath parsing
2021-03-25[fix] update geektimes.ru url - it redirects to habr.comAdam Tauber
2021-03-25[fix] update google play movies xpathAdam Tauber
2021-03-25[fix] update google play apps xpathAdam Tauber
2021-03-25[enh] add year filter to duckduckgoAdam Tauber
2021-03-24[fix] remove debug codeAdam Tauber
2021-03-22[mod] preferences: a tooltip is shown when the mouse is over the engine namesAlexandre Flament
2021-03-21[mod] oscar: fix the sourcemap URL in *.min.cssAlexandre Flament
Close https://github.com/searx/searx/issues/2670 Note: clean-css contains a bug: * a multiline comment or URL adds "$stdin" to the sourcemap (see src/less/logicodev/search.less) * in this case when the user opens the devtools, the browser fails to load this "https://.../$stdin" URL * it is not a problem and the error appears only when the user actively tries to debug the CSS. * seems related to https://github.com/jakubpawlowicz/clean-css/issues/593
2021-03-21Merge pull request #2671 from searx/update-soundcloudAlexandre Flament
[mod] soundcloud: faster initialization
2021-03-21Merge pull request #2660 from dalf/upd-translationsAlexandre Flament
[mod] replace /translations.js with an embedded JSON
2021-03-21[mod] soundcloud: faster initializationAlexandre Flament
The get_cliend_id() function: * fetches https://soundcloud.com * then fetches each referenced javascript URL to get the client id. This commit fetches the javascript URLs in the reverse order: the client id is in the last javascript URL.
2021-03-19Update settings.yml to enable HTTP for yacyJames Higginbotham
Added a line to the yacy entry to enable HTTP if the local yacy instance isn't using HTTPS. Otherwise, an error will be thrown in the logs: "No connection adapters were found for 'http://localhost:8090/yacysearch.json...'". This is likely related to ticket #2641 that forces HTTPS by default.
2021-03-17[mod] oscar: remove spaceAlexandre Flament
* reduce by 15% the uncompressed output (on average) * dos2unix searx/templates/oscar/result_templates/files.html
2021-03-16Merge branch 'master' into conditional-sigusr1Dr. Rolf Jansen
2021-03-16[mod] replace /translations.js by embedded JSONAlexandre Flament
In webapp.py, there is a new function "get_translations" lists available translations Close #2064