repo stringclasses 454
values | file_path stringlengths 5 201 | extension stringclasses 1
value | content stringlengths 8 509k | num_lines int64 3 16.9k | size_bytes int64 8 511k |
|---|---|---|---|---|---|
searxng | searx/engines/mediawiki.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""The MediaWiki engine is a *generic* engine to **query** Wikimedia wikis by
the `MediaWiki Action API`_. For a `query action`_ all Wikimedia wikis have
endpoints that follow this pattern::
https://{base_url}/w/api.php?action=query&list=search&format=json
.. note::
... | 171 | 4,991 |
searxng | searx/engines/duckduckgo_extra.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
DuckDuckGo Extra (images, videos, news)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
import typing as t
from datetime import datetime
from urllib.parse import urlencode
from urllib.parse import quote_plus
from searx.utils import get_embeded_stream_url, html_to_text, ge... | 202 | 5,995 |
searxng | searx/engines/openverse.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
Openverse (formerly known as: Creative Commons search engine) [Images]
"""
from json import loads
from urllib.parse import urlencode
about = {
"website": 'https://openverse.org/',
"wikidata_id": None,
"official_api_documentation": 'https://api.openverse.... | 55 | 1,179 |
searxng | searx/engines/reuters.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Reuters_ (news) is an international news agency.
.. _Reuters: https://www.reuters.com
Configuration
=============
The engine has the following additional settings:
- :py:obj:`sort_order`
.. code:: yaml
- name: reuters
engine: reuters
shortcut: reu
... | 138 | 3,902 |
searxng | searx/engines/baidu.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Baidu_
.. _Baidu: https://www.baidu.com
"""
# There exits a https://github.com/ohblue/baidu-serp-api/
# but we don't use it here (may we can learn from).
import typing as t
from urllib.parse import urlencode
from datetime import datetime
from html import unescape
impo... | 221 | 6,925 |
searxng | searx/engines/il_post.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Engine for Il Post, a largely independent online Italian newspaper.
To use this engine add the following entry to your engines
list in ``settings.yml``:
.. code:: yaml
- name: il post
engine: il_post
shortcut: pst
disabled: false
"""
from urllib.parse i... | 72 | 1,742 |
searxng | searx/engines/wallhaven.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Wallhaven_ is a site created by and for people who like wallpapers.
.. _Wallhaven: https://wallhaven.cc/about#Copyright
"""
from datetime import datetime
from urllib.parse import urlencode
from searx.utils import humanize_bytes
about = {
'website': 'https://wallha... | 89 | 2,376 |
searxng | searx/engines/mediathekviewweb.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""MediathekViewWeb (API)"""
import datetime
from json import loads, dumps
about = {
"website": 'https://mediathekviewweb.de/',
"wikidata_id": 'Q27877380',
"official_api_documentation": 'https://gist.github.com/bagbag/a2888478d27de0e989cf777f81fb33de',
"use... | 74 | 1,847 |
searxng | searx/engines/ahmia.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
Ahmia (Onions)
"""
import typing as t
from urllib.parse import urlencode, urlparse, parse_qs
from lxml.html import fromstring
from searx.utils import gen_useragent, ElementType
from searx.engines.xpath import extract_url, extract_text, eval_xpath_list, eval_xpath
from ... | 114 | 3,920 |
searxng | searx/engines/picjumbo.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Picjumbo_ provides free stock photos.
.. _Picjumbo: https://picjumbo.com
"""
from urllib.parse import urlparse, urlunparse
import typing as t
from lxml import html
from searx.result_types import EngineResults
from searx.utils import eval_xpath, eval_xpath_list, extrac... | 64 | 1,893 |
searxng | searx/engines/doku.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
Doku Wiki
"""
from urllib.parse import urlencode
from urllib.parse import urljoin
from lxml.html import fromstring
from searx.utils import extract_text, eval_xpath
# about
about = {
"website": 'https://www.dokuwiki.org/',
"wikidata_id": 'Q851864',
"official... | 87 | 2,233 |
searxng | searx/engines/google_scholar.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Google Scholar is a freely accessible web search engine that indexes the full
text or metadata of scholarly literature across an array of publishing formats
and disciplines.
Compared to other Google services the Scholar engine has a simple GET REST-API
and there does not... | 241 | 7,773 |
searxng | searx/engines/duckduckgo_weather.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
DuckDuckGo Weather
~~~~~~~~~~~~~~~~~~
"""
import typing as t
from json import loads
from urllib.parse import quote
from dateutil import parser as date_parser
from searx.engines.duckduckgo import fetch_traits # pylint: disable=unused-import
from searx.engines.duckduck... | 127 | 4,086 |
searxng | searx/engines/artic.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""The Art Institute of Chicago
Explore thousands of artworks from The Art Institute of Chicago.
* https://artic.edu
"""
from json import loads
from urllib.parse import urlencode
about = {
"website": 'https://www.artic.edu',
"wikidata_id": 'Q239303',
"offici... | 68 | 1,698 |
searxng | searx/engines/duckduckgo_definitions.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
DuckDuckGo Instant Answer API
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The `DDG-API <https://duckduckgo.com/api>`__ is no longer documented but from
reverse engineering we can see that some services (e.g. instant answers) still
in use from the DDG search engine.
As far we can say... | 268 | 11,001 |
searxng | searx/engines/emojipedia.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Emojipedia
Emojipedia is an emoji reference website which documents the meaning and
common usage of emoji characters in the Unicode Standard. It is owned by Zedge
since 2021. Emojipedia is a voting member of The Unicode Consortium.[1]
[1] https://en.wikipedia.org/wiki/... | 54 | 1,237 |
searxng | searx/engines/steam.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Steam (store) for SearXNG."""
from urllib.parse import urlencode
from searx.utils import html_to_text
from searx.result_types import EngineResults, MainResult
about = {
"website": 'https://store.steampowered.com/',
"wikidata_id": 'Q337535',
"use_official_ap... | 52 | 1,429 |
searxng | searx/engines/npm.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""npms.io"""
from urllib.parse import urlencode
from dateutil import parser
about = {
"website": "https://npms.io/",
"wikidata_id": "Q7067518",
"official_api_documentation": "https://api-docs.npms.io/",
"use_official_api": False,
"require_api_key": Fa... | 65 | 1,737 |
searxng | searx/engines/tubearchivist.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""`Tube Archivist`_ - *Your self hosted YouTube media server.*
.. _Tube Archivist: https://www.tubearchivist.com
This engine connects with a self-hosted instance of `Tube Archivist`_ to allow
searching for your hosted videos.
`Tube Archivist`_ (TA) requires authenticatio... | 187 | 5,979 |
searxng | searx/engines/swisscows.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=invalid-name
"""Swisscows (general, images, videos)"""
import typing as t
import base64
import codecs
import hashlib
import json
import random
import string
from datetime import datetime
from urllib.parse import urlencode
from babel.core import get_glob... | 289 | 9,510 |
searxng | searx/engines/mastodon.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Mastodon_ is an open source alternative to large social media platforms like
Twitter/X, Facebook, ...
Since it's federated and self-hostable, there's a large amount of available
instances, which can be chosen instead by modifying ``base_url``.
We use their official API_... | 80 | 2,515 |
searxng | searx/engines/giphy.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Giphy (images)"""
import random
from urllib.parse import urlencode
import re
import typing as t
from lxml import html
from searx.enginelib import EngineCache
from searx.exceptions import SearxEngineAPIException
from searx.network import get
from searx.result_types imp... | 128 | 3,749 |
searxng | searx/engines/genius.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=invalid-name
"""Genius"""
from urllib.parse import urlencode
from datetime import datetime
# about
about = {
"website": 'https://genius.com/',
"wikidata_id": 'Q3419343',
"official_api_documentation": 'https://docs.genius.com/',
"use_offici... | 101 | 2,783 |
searxng | searx/engines/mariadb_server.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""MariaDB is a community driven fork of MySQL. Before enabling MariaDB engine,
you must the install the pip package ``mariadb`` along with the necessary
prerequities.
`See the following documentation for more details
<https://mariadb.com/docs/server/connect/programming-lan... | 88 | 2,280 |
searxng | searx/engines/__init__.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Load and initialize the ``engines``, see :py:func:`load_engines` and register
:py:obj:`engine_shortcuts`.
usage::
load_engines( settings['engines'] )
"""
import typing as t
import sys
import copy
import os
from os.path import realpath, dirname
import warnings
im... | 333 | 11,455 |
searxng | searx/engines/luxxle.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Luxxle_ is an American search engine focusing on providing "unbiased"
results.
.. _Luxxle: https://luxxle.com
"""
from json import dumps
from urllib.parse import quote_plus, unquote_plus
import typing as t
from lxml import html
from searx.result_types import EngineRes... | 211 | 7,376 |
searxng | searx/engines/cloudflareai.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Cloudflare AI engine"""
from json import loads, dumps
from searx.exceptions import SearxEngineAPIException
about = {
"website": 'https://ai.cloudflare.com',
"wikidata_id": None,
"official_api_documentation": 'https://developers.cloudflare.com/workers-ai',
... | 69 | 1,983 |
searxng | searx/engines/9gag.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=invalid-name
"""9GAG (social media)"""
from json import loads
from datetime import datetime
from urllib.parse import urlencode
about = {
"website": 'https://9gag.com/',
"wikidata_id": 'Q277421',
"official_api_documentation": None,
"use_off... | 77 | 2,336 |
searxng | searx/engines/youtube_api.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
Youtube (Videos)
"""
from json import loads
from urllib.parse import urlencode
from dateutil import parser
from searx.exceptions import SearxEngineAPIException
# about
about = {
"website": 'https://www.youtube.com/',
"wikidata_id": 'Q866',
"official_api_do... | 93 | 2,447 |
searxng | searx/engines/odysee.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Odysee_ is a decentralized video hosting platform.
.. _Odysee: https://github.com/OdyseeTeam/odysee-frontend
"""
from datetime import datetime
from urllib.parse import urlencode
import babel
from searx.enginelib.traits import EngineTraits
from searx.locales import lan... | 135 | 4,051 |
searxng | searx/engines/bing_images.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Bing-Images: description see :py:obj:`searx.engines.bing`."""
import json
from urllib.parse import urlencode
from lxml import html
from searx.engines.bing import ( # pylint: disable=unused-import
fetch_traits,
get_locale_params,
override_accept_language,
)... | 100 | 2,984 |
searxng | searx/engines/boardreader.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Boardreader (forum search)"""
import re
from datetime import datetime
from urllib.parse import urlencode
import typing as t
import gettext
import babel
from searx.locales import language_tag
from searx.enginelib import EngineCache
from searx.enginelib.traits import Eng... | 147 | 4,445 |
searxng | searx/engines/deezer.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
Deezer (Music)
"""
from json import loads
from urllib.parse import urlencode
# about
about = {
"website": 'https://deezer.com',
"wikidata_id": 'Q602243',
"official_api_documentation": 'https://developers.deezer.com/',
"use_official_api": True,
"requ... | 62 | 1,552 |
searxng | searx/engines/pexels.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Pexels (images)"""
import re
from urllib.parse import urlencode
from lxml import html
from searx.result_types import EngineResults
from searx.utils import eval_xpath_list, gen_useragent
from searx.enginelib import EngineCache
from searx.exceptions import SearxEngineAPI... | 131 | 3,745 |
searxng | searx/engines/imdb.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""IMDB - Internet Movie Database
Retrieves results from a basic search. Advanced search options are not
supported. IMDB's API is undocumented, here are some posts about:
- https://stackoverflow.com/questions/1966503/does-imdb-provide-an-api
- https://rapidapi.com/blog/h... | 98 | 3,060 |
searxng | searx/engines/lemmy.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""This engine uses the Lemmy API (https://lemmy.ml/api/v3/search), which is
documented at `lemmy-js-client`_ / `Interface Search`_. Since Lemmy is
federated, results are from many different, independent lemmy instances, and not
only the official one.
.. _lemmy-js-client: ... | 197 | 5,505 |
searxng | searx/engines/cara.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=invalid-name
"""Cara_ is a social media and portfolio-sharing platform for artists and art
enthusiasts.
With the widespread use of generative AI, Cara_ decided to build a place that
filters out gen AI images so that people searching for authentic creatives... | 86 | 2,270 |
searxng | searx/engines/unsplash.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Unsplash"""
from urllib.parse import urlencode, urlparse, urlunparse, parse_qsl
from json import loads
from searx.utils import searxng_useragent
# about
about = {
"website": 'https://unsplash.com',
"wikidata_id": 'Q28233552',
"official_api_documentation": '... | 64 | 1,943 |
searxng | searx/engines/imgur.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Imgur (images)"""
from urllib.parse import urlencode
from lxml import html
from searx.utils import extract_text, eval_xpath, eval_xpath_list
about = {
"website": 'https://imgur.com/',
"wikidata_id": 'Q355022',
"official_api_documentation": 'https://api.imgur... | 65 | 1,742 |
searxng | searx/engines/sogou_videos.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Sogou-Videos: A search engine for retrieving videos from Sogou."""
from urllib.parse import urlencode
from datetime import datetime, timedelta
from searx.exceptions import SearxEngineAPIException
about = {
"website": "https://v.sogou.com/",
"use_official_api": ... | 82 | 2,235 |
searxng | searx/engines/yahoo.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Yahoo Search (Web)
Languages are supported by mapping the language to a domain. If domain is not
found in :py:obj:`lang2domain` URL ``<lang>.search.yahoo.com`` is used.
"""
from urllib.parse import (
unquote,
urlencode,
)
from lxml import html
from searx.util... | 257 | 7,670 |
searxng | searx/engines/postgresql.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""PostgreSQL is a powerful and robust open source database. Before configuring
the PostgreSQL engine, you must install the dependency ``psychopg2``.
Example
=======
Below is an example configuration:
.. code:: yaml
- name: my_database
engine: postgresql
da... | 99 | 2,290 |
searxng | searx/engines/flickr.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
Flickr (Images)
More info on api-key : https://www.flickr.com/services/apps/create/
"""
from json import loads
from urllib.parse import urlencode
# about
about = {
"website": 'https://www.flickr.com',
"wikidata_id": 'Q103204',
"official_api_documentation":... | 96 | 2,440 |
searxng | searx/engines/heexy.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Heexy_ is a minimalist search engine that focuses on privacy.
Although it also supports news and videos, these are not implemented here
because they usually return no result to very few irrelevant ones.
It seems to use Bing internally, as the image thumbnails are loaded... | 128 | 3,771 |
searxng | searx/engines/rottentomatoes.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""RottenTomatoes (movies)"""
from urllib.parse import quote_plus
from lxml import html
from searx.utils import eval_xpath, eval_xpath_list, extract_text
# about
about = {
"website": 'https://www.rottentomatoes.com/',
"wikidata_id": 'Q105584',
"official_api_doc... | 59 | 1,690 |
searxng | searx/engines/mojeek.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Mojeek (general, images, news)"""
from datetime import datetime
from urllib.parse import urlencode
from dateutil.relativedelta import relativedelta
from lxml import html
from searx.enginelib.traits import EngineTraits
from searx.utils import eval_xpath, eval_xpath_list... | 186 | 5,704 |
searxng | searx/engines/google_cse.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Google Custom Search Engine"""
import datetime
import typing as t
from json import loads
from urllib.parse import urlencode
from searx.enginelib import EngineCache
from searx.exceptions import SearxEngineAPIException, SearxEngineTooManyRequestsException
from searx.netwo... | 191 | 5,848 |
searxng | searx/engines/seekninja.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Seek ninja (general)"""
from json import loads
from hashlib import sha256
from urllib.parse import urlencode, quote_plus
import typing as t
from searx.extended_types import SXNG_Response
from searx.network import get
from searx.result_types import EngineResults
from se... | 114 | 3,317 |
searxng | searx/engines/wikipedia.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""This module implements the Wikipedia engine. Some of this implementations
are shared by other engines:
- :ref:`wikidata engine`
The list of supported languages is :py:obj:`fetched <fetch_wikimedia_traits>` from
the article linked by :py:obj:`list_of_wikipedias`.
Unlik... | 330 | 11,615 |
searxng | searx/engines/astrophysics_data_system.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""The Astrophysics Data System (ADS_) is a digital library portal for
researchers in astronomy and physics, operated by the Smithsonian Astrophysical
Observatory (SAO) under a NASA grant. The ADS_ is a solr instance, but not with
the standard API paths.
.. note::
The ... | 164 | 4,518 |
searxng | searx/engines/btdigg.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
BTDigg (Videos, Music, Files)
"""
from urllib.parse import quote, urljoin
from lxml import html
from searx.utils import extract_text
# about
about = {
"website": 'https://btdig.com',
"wikidata_id": 'Q4836698',
"official_api_documentation": {'url': 'https:/... | 86 | 2,312 |
searxng | searx/engines/ccc_media.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""media.ccc.de"""
import datetime
from urllib.parse import urlencode
from dateutil import parser
about = {
'website': 'https://media.ccc.de',
'official_api_documentation': 'https://github.com/voc/voctoweb',
'use_official_api': True,
'require_api_key': Fal... | 60 | 1,626 |
searxng | searx/engines/exaapi.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Engine to search using the official `Exa Search API`_. Exa is a search engine for AI agents.
.. _Exa Search API: https://exa.ai/docs/reference/search
Configuration
=============
The engine has the following mandatory setting:
- :py:obj:`api_key`
You can obtain an API... | 169 | 4,859 |
searxng | searx/engines/iseek.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""iseek_ is a search engine by the AI company Vantage Labs LLC,
that focuses on medical and educational applicances.
Although it's an AI company, it doesn't include any AI stuff in its results.
.. _iseek : https://www.iseek.ai/
"""
import base64
from hashlib import sha256... | 89 | 2,760 |
searxng | searx/engines/crossref.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Crossref_ is the sustainable source of community-owned scholarly metadata and
is relied upon by thousands of systems across the research ecosystem and the
globe.
.. _Crossref: https://www.crossref.org/documentation/retrieve-metadata/
"""
import typing as t
from urllib... | 98 | 3,321 |
searxng | searx/engines/artstation.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Artstation (images)"""
import re
import typing as t
from json import dumps
from searx.result_types import EngineResults
from searx.network import post
from searx.enginelib import EngineCache
# Engine metadata
about = {
"website": 'https://www.artstation.com/',
... | 106 | 2,920 |
searxng | searx/engines/bing.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""This is the implementation of the Bing-Web engine. Some of this
implementations are shared by other engines:
- :ref:`bing images engine`
- :ref:`bing news engine`
- :ref:`bing videos engine`
.. note::
Some functionality (paging and time-range results) are not suppo... | 211 | 7,029 |
searxng | searx/engines/yacy.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""YaCy_ is a free distributed search engine, built on the principles of
peer-to-peer (P2P) networks.
API: Dev:APIyacysearch_
Releases:
- https://github.com/yacy/yacy_search_server/tags
- https://download.yacy.net/
.. _Yacy: https://yacy.net/
.. _Dev:APIyacysearch: https... | 204 | 5,089 |
searxng | searx/engines/tagesschau.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""ARD: `Tagesschau API`_
The Tagesschau is a news program of the ARD. Via the `Tagesschau API`_, current
news and media reports are available in JSON format. The `Bundesstelle für Open
Data`_ offers a `OpenAPI`_ portal at bundDEV_ where APIs are documented an can
be test... | 111 | 3,168 |
searxng | searx/engines/mrs.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Matrix Rooms Search - a fully-featured, standalone, matrix rooms search service.
Configuration
=============
The engine has the following mandatory settings:
- :py:obj:`base_url`
.. code:: yaml
- name: MRS
engine: mrs
base_url: https://mrs-host
...
Imp... | 71 | 1,712 |
searxng | searx/engines/ina.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
INA (Videos)
"""
from html import unescape
from urllib.parse import urlencode
from lxml import html
from searx.utils import extract_text, eval_xpath, eval_xpath_list, eval_xpath_getindex
# about
about = {
"website": 'https://www.ina.fr/',
"wikidata_id": 'Q16651... | 76 | 2,129 |
searxng | searx/engines/podchaser.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Podchaser (podcasts)"""
import typing as t
from datetime import datetime
from urllib.parse import urlencode
from searx.result_types import EngineResults
if t.TYPE_CHECKING:
from searx.extended_types import SXNG_Response
from searx.search.processors import Onli... | 63 | 1,823 |
searxng | searx/engines/meilisearch.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
""".. sidebar:: info
- :origin:`meilisearch.py <searx/engines/meilisearch.py>`
- `MeiliSearch <https://www.meilisearch.com>`_
- `MeiliSearch Documentation <https://docs.meilisearch.com/>`_
- `Install MeiliSearch
<https://docs.meilisearch.com/learn/getting_s... | 90 | 2,340 |
searxng | searx/engines/selfhst.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""selfh.st/icons - A collection of logos for self-hosted dashboards and
documentation"""
from dateutil import parser
about = {
'website': 'https://selfh.st/icons/',
'official_api_documentation': 'https://selfh.st/icons-about/',
"use_official_api": True,
"r... | 54 | 1,476 |
searxng | searx/engines/currency_convert.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Currency convert (DuckDuckGo)"""
import typing as t
import json
from searx.result_types import EngineResults
if t.TYPE_CHECKING:
from searx.search.processors import OnlineCurrenciesParams
from searx.extended_types import SXNG_Response
# about
about = {
"web... | 59 | 1,787 |
searxng | searx/engines/google_images.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""This is the implementation of the Google Images engine using the internal
Google API used by the Google Go Android app.
This internal API offer results in
- JSON (``_fmt:json``)
- Protobuf_ (``_fmt:pb``)
- Protobuf_ compressed? (``_fmt:pc``)
- HTML (``_fmt:html``)
- Pro... | 123 | 3,806 |
searxng | searx/engines/solidtorrents.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""SolidTorrents"""
from datetime import datetime
from urllib.parse import urlencode
import random
from lxml import html
from searx.utils import (
extract_text,
eval_xpath,
eval_xpath_getindex,
eval_xpath_list,
)
about = {
"website": 'https://www.soli... | 78 | 2,452 |
searxng | searx/engines/recoll.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
""".. sidebar:: info
- `Recoll <https://www.lesbonscomptes.com/recoll/>`_
- `recoll-webui <https://framagit.org/medoc92/recollwebui.git>`_
- :origin:`searx/engines/recoll.py`
Recoll_ is a desktop full-text search tool based on Xapian. By itself Recoll_
does not o... | 157 | 4,452 |
searxng | searx/engines/github_code.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-lat_er
"""GitHub code search with `search syntax`_ as described in `Constructing a
search query`_ in the documentation of GitHub's REST API.
.. _search syntax:
https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax
..... | 250 | 8,806 |
searxng | searx/engines/sogou.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Sogou search engine for searxng"""
import re
from datetime import datetime
from urllib.parse import urlencode
from lxml import html
from searx.exceptions import SearxEngineCaptchaException
from searx.utils import extract_text
# Metadata
about = {
"website": "https:... | 141 | 4,115 |
searxng | searx/engines/bing_videos.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Bing-Videos: description see :py:obj:`searx.engines.bing`."""
import json
from urllib.parse import urlencode
from lxml import html
from searx.engines.bing import ( # pylint: disable=unused-import
fetch_traits,
get_locale_params,
override_accept_language,
)... | 97 | 2,807 |
searxng | searx/engines/sqlite.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""SQLite is a small, fast and reliable SQL database engine. It does not require
any extra dependency.
Configuration
=============
The engine has the following (additional) settings:
- :py:obj:`result_type`
Example
=======
.. _MediathekView: https://mediathekview.de/
... | 120 | 3,373 |
searxng | searx/engines/tineye.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""This engine implements *Tineye - reverse image search*
Using TinEye, you can search by image or perform what we call a reverse image
search. You can do that by uploading an image or searching by URL. You can also
simply drag and drop your images to start your search. T... | 215 | 7,284 |
searxng | searx/engines/keenable.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Keenable is a fast web search with keyless mode support"""
import typing as t
from datetime import datetime
from searx.extended_types import SXNG_Response
from searx.result_types import EngineResults
from searx.utils import searxng_useragent
if t.TYPE_CHECKING:
fro... | 67 | 1,871 |
searxng | searx/engines/torznab.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Torznab_ is an API specification that provides a standardized way to query
torrent site for content. It is used by a number of torrent applications,
including Prowlarr_ and Jackett_.
Using this engine together with Prowlarr_ or Jackett_ allows you to search
a huge number... | 238 | 7,757 |
searxng | searx/engines/gmx.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""GMX (general)
It's unclear which index it uses, the results were the most similar to Google's.
In theory it supports multiple languages, but even if changing the region on their website,
most of the results are still in English."""
import time
import typing as t
from ... | 103 | 3,556 |
searxng | searx/engines/pypi.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""pypi.org"""
from urllib.parse import urlencode
from dateutil import parser
from lxml import html
from searx.utils import (
eval_xpath_getindex,
eval_xpath_list,
extract_text,
)
# about
about = {
"website": "https://pypi.org",
"wikidata_id": "Q298468... | 66 | 1,932 |
searxng | searx/engines/photon.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
Photon (Map)
"""
from json import loads
from urllib.parse import urlencode
from searx.utils import searxng_useragent
# about
about = {
"website": 'https://photon.komoot.io',
"wikidata_id": None,
"official_api_documentation": 'https://photon.komoot.io/',
... | 144 | 4,068 |
searxng | searx/engines/brave.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Brave supports the categories listed in :py:obj:`brave_category` (General,
news, videos, images). The support of :py:obj:`paging` and :py:obj:`time range
<time_range_support>` is limited (see remarks).
Configured ``brave`` engines:
.. code:: yaml
- name: brave
e... | 495 | 15,928 |
searxng | searx/engines/vuhuv.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Vuhuv_ is a Turkish search engine, that also provides English results.
.. _Vuhuv : https://vuhuv.com
"""
import typing as t
from urllib.parse import urlencode
from lxml import html
from searx.result_types import EngineResults
from searx.utils import eval_xpath_list, e... | 115 | 3,914 |
searxng | searx/engines/public_domain_image_archive.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Public domain image archive"""
import re
from urllib.parse import urlencode, urlparse, urlunparse, parse_qsl
from json import dumps
from searx.network import get
from searx.utils import extr
from searx.exceptions import SearxEngineAccessDeniedException, SearxEngineExce... | 152 | 4,610 |
searxng | searx/engines/gitea.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Engine to search in collaborative software platforms based on Gitea_ or Forgejo_.
.. _Gitea: https://about.gitea.com/
.. _Forgejo: https://forgejo.org/
Configuration
=============
The engine has the following mandatory setting:
- :py:obj:`base_url`
Optional settings ... | 117 | 2,836 |
searxng | searx/engines/swisscows_news.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=invalid-name
"""Swisscows news"""
from datetime import datetime
from urllib.parse import urlencode
import typing as t
from searx.utils import html_to_text
from searx.result_types import EngineResults
from searx.engines.swisscows import appropriate_locale... | 84 | 2,245 |
searxng | searx/engines/soundcloud.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""SoundCloud is a German audio streaming service."""
import re
import datetime
from urllib.parse import quote_plus, urlencode
from dateutil import parser
from lxml import html
from searx.network import get as http_get
from searx.enginelib import EngineCache
about = {
... | 158 | 4,493 |
searxng | searx/engines/neosearch.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Neosearch_ aims to be a privacy-first alternative to Google.
.. _Neosearch: https://neosearch.org/About
"""
from json import loads
import typing as t
from urllib.parse import urlencode
from searx.extended_types import SXNG_Response
from searx.result_types import Engine... | 93 | 2,798 |
searxng | searx/engines/jina.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Jina is a search AI and part of Elastic, the company behind ElasticSearch.
The engine requires an API key, you can get one from the
`API dashboard <https://jina.ai/api-dashboard/>`_ without signup.
.. code:: yaml
- name: jina
engine: jina
shortcut: ji
api... | 90 | 2,301 |
searxng | searx/engines/dummy.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Dummy"""
# about
about = {
"website": None,
"wikidata_id": None,
"official_api_documentation": None,
"use_official_api": False,
"require_api_key": False,
"results": 'empty array',
}
# do search-request
def request(query, params): # pylint: disa... | 23 | 464 |
searxng | searx/engines/xpath.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""The XPath engine is a *generic* engine with which it is possible to configure
engines in the settings.
.. _XPath selector: https://quickref.me/xpath.html#xpath-selectors
Configuration
=============
Request:
- :py:obj:`search_url`
- :py:obj:`lang_all`
- :py:obj:`soft_m... | 346 | 9,641 |
searxng | searx/engines/pixabay.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Pixabay provides royalty-free media (images, videos)"""
from datetime import timedelta
from urllib.parse import quote_plus, urlencode
from dateutil import parser
from searx.utils import gen_useragent
# about
about = {
"website": 'https://pixabay.com',
"wikidata_... | 99 | 2,872 |
searxng | searx/engines/startpagina.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Startpagina is a Netherlands search engine by `Kompas`_. It takes all its
results from Google.
.. _Kompas: https://www.kompaspublishing.nl/
"""
import typing as t
from urllib.parse import urlencode
from dateutil import parser
from searx.utils import format_duration
fr... | 108 | 3,300 |
searxng | searx/engines/translated.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""MyMemory Translated"""
import typing as t
import urllib.parse
from searx.utils import html_to_text
from searx.result_types import EngineResults
if t.TYPE_CHECKING:
from searx.extended_types import SXNG_Response
from searx.search.processors import OnlineDictPar... | 74 | 2,063 |
searxng | searx/engines/duckduckgo.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
DuckDuckGo WEB
~~~~~~~~~~~~~~
DDG's WEB search:
- DuckDuckGo WEB : ``https://links.duckduckgo.com/d.js?q=..`` (HTTP GET)
- DuckDuckGo WEB no-AI: ``https://noai.duckduckgo.com/`` (HTTP GET)
- DuckDuckGo WEB html : ``https://html.duckduckgo.com/html`` ... | 619 | 20,575 |
searxng | searx/engines/dictzone.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""
Dictzone
"""
import urllib.parse
from lxml import html
from searx.utils import eval_xpath, extract_text
from searx.result_types import EngineResults
from searx.network import get as http_get # https://github.com/searxng/searxng/issues/762
# about
about = {
"websi... | 105 | 2,865 |
searxng | searx/engines/pubmed.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""PubMed_ comprises more than 39 million citations for biomedical literature
from MEDLINE, life science journals, and online books. Citations may include
links to full text content from PubMed Central and publisher web sites.
.. _PubMed: https://pubmed.ncbi.nlm.nih.gov/
C... | 152 | 4,941 |
searxng | searx/engines/ollama.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Ollama model search engine for searxng"""
from urllib.parse import urlencode
from datetime import datetime
from lxml import html
from searx.utils import eval_xpath_list, eval_xpath_getindex, eval_xpath, extract_text
from searx.result_types import EngineResults
about = ... | 61 | 1,727 |
searxng | searx/engines/mixcloud.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Mixcloud (Music)"""
from urllib.parse import urlencode
from dateutil import parser
# about
about = {
"website": 'https://www.mixcloud.com/',
"wikidata_id": 'Q6883832',
"official_api_documentation": 'http://www.mixcloud.com/developers/',
"use_official_api... | 52 | 1,358 |
searxng | searx/engines/stocksnap.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Stocksnap_ is a search engine for CC0-licensed images.
.. _Stocksnap: https://stocksnap.io
"""
import typing as t
from searx.result_types import EngineResults
if t.TYPE_CHECKING:
from searx.extended_types import SXNG_Response
from searx.search.processors impor... | 56 | 1,566 |
searxng | searx/engines/shopify_stock.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Shopify stock photos provides royalty-free images, intended for use with
Shopify.
"""
import typing as t
from urllib.parse import urlencode
from lxml import html
from searx.result_types import EngineResults
from searx.utils import eval_xpath, eval_xpath_list, extract_t... | 63 | 1,829 |
searxng | searx/engines/openlibrary.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""`Open Library`_ is an open, editable library catalog, building towards a web
page for every book ever published.
.. _Open Library: https://openlibrary.org
Configuration
=============
The service sometimes takes a very long time to respond, the ``timeout`` may
need to b... | 110 | 2,887 |
searxng | searx/engines/mwmbl.py | .py | # SPDX-License-Identifier: AGPL-3.0-or-later
"""Mwmbl_ is a non-profit, ad-free, free-libre and free-lunch search engine with
a focus on useability and speed.
.. hint::
At the moment it is little more than an idea together with a proof of concept
implementation of the web front-end and search technology on a sm... | 52 | 1,316 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.