id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
31,600
blueman_sendto.py.in
blueman-project_blueman/sendto/blueman_sendto.py.in
from gi.repository import @FILEMANAGER@, GObject, Gio # noinspection PyMissingConstructor class BluemanSendtoExtension(GObject.GObject, @FILEMANAGER@.MenuProvider): def __init__(self): pass def on_menu_activate(self, menu, files): send_files = [] for f in files: if f.is_d...
1,754
Python
.py
45
28.066667
87
0.568732
blueman-project/blueman
1,227
187
70
GPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,601
setup.py
searx_searx/setup.py
# -*- coding: utf-8 -*- """Installer for Searx package.""" from setuptools import setup from setuptools import find_packages import os import sys from searx.version import VERSION_STRING from searx import brand with open('README.rst', encoding='utf-8') as f: long_description = f.read() with open('requirements....
2,187
Python
.py
70
23.957143
73
0.561878
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,602
.pylintrc
searx_searx/.pylintrc
# -*- coding: utf-8; mode: conf -*- # lint Python modules using external checkers. # # This is the main checker controlling the other ones and the reports # generation. It is itself both a raw checker and an astng checker in order # to: # * handle message activation / deactivation at the module level # * handle some ba...
13,080
Python
.py
278
45.604317
89
0.785376
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,603
settings_loader.py
searx_searx/searx/settings_loader.py
# SPDX-License-Identifier: AGPL-3.0-or-later from os import environ from os.path import dirname, join, abspath, isfile from collections.abc import Mapping from itertools import filterfalse import yaml from searx.exceptions import SearxSettingsException searx_dir = abspath(dirname(__file__)) def check_settings_ym...
5,179
Python
.py
108
39.583333
107
0.670173
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,604
autocomplete.py
searx_searx/searx/autocomplete.py
''' searx is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. searx is distributed in the hope that it will be useful, but WITHOUT ANY WA...
4,348
Python
.py
107
34.953271
111
0.682252
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,605
webadapter.py
searx_searx/searx/webadapter.py
from collections import defaultdict from typing import Dict, List, Optional, Tuple from searx.exceptions import SearxParameterException from searx.webutils import VALID_LANGUAGE_CODE from searx.query import RawTextQuery from searx.engines import categories, engines from searx.search import SearchQuery, EngineRef from s...
9,797
Python
.py
199
41.492462
114
0.684403
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,606
poolrequests.py
searx_searx/searx/poolrequests.py
import sys from time import time from itertools import cycle from threading import local import requests from searx import settings from searx import logger from searx.raise_for_httperror import raise_for_httperror logger = logger.getChild('poolrequests') try: import ssl if ssl.OPENSSL_VERSION_INFO[0:3] <...
7,417
Python
.py
166
36.975904
113
0.668477
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,607
webapp.py
searx_searx/searx/webapp.py
#!/usr/bin/env python ''' searx is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. searx is distributed in the hope that it will be use...
44,182
Python
.py
970
36.657732
146
0.630631
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,608
raise_for_httperror.py
searx_searx/searx/raise_for_httperror.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Raise exception for an HTTP response is an error. """ from searx.exceptions import (SearxEngineCaptchaException, SearxEngineTooManyRequestsException, SearxEngineAccessDeniedException) def is_cloudflare_challenge(resp): if resp.status_c...
2,679
Python
.py
51
43.843137
124
0.683888
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,609
webutils.py
searx_searx/searx/webutils.py
# -*- coding: utf-8 -*- import os import csv import hashlib import hmac import re import inspect from io import StringIO from codecs import getincrementalencoder from searx import logger VALID_LANGUAGE_CODE = re.compile(r'^[a-z]{2,3}(-[a-zA-Z]{2})?$') logger = logger.getChild('webutils') class UnicodeWriter: ...
4,467
Python
.py
117
30.811966
80
0.627692
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,610
languages.py
searx_searx/searx/languages.py
# -*- coding: utf-8 -*- # list of language codes # this file is generated automatically by utils/fetch_languages.py language_codes = \ ( ('af-ZA', 'Afrikaans', '', 'Afrikaans'), ('ar-EG', 'العربية', '', 'Arabic'), ('be-BY', 'Беларуская', '', 'Belarusian'), ('bg-BG', 'Български', '', 'Bulgarian'), ('ca...
3,237
Python
.py
71
38.577465
66
0.498168
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,611
utils.py
searx_searx/searx/utils.py
# -*- coding: utf-8 -*- import sys import re import importlib from numbers import Number from os.path import splitext, join from random import choice from html.parser import HTMLParser from urllib.parse import urljoin, urlparse, urlunparse from lxml import html from lxml.etree import ElementBase, XPath, XPathError, X...
19,439
Python
.py
483
33.028986
117
0.628581
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,612
results.py
searx_searx/searx/results.py
import re from collections import defaultdict from operator import itemgetter from threading import RLock from urllib.parse import urlparse, unquote from searx import logger from searx.engines import engines from searx.metrology.error_recorder import record_error from searx.utils import add_scheme_to_url from searx imp...
14,972
Python
.py
325
35.009231
111
0.585083
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,613
__init__.py
searx_searx/searx/__init__.py
''' searx is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. searx is distributed in the hope that it will be useful, but WITHOUT ANY WA...
3,378
Python
.py
91
33.538462
75
0.719939
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,614
query.py
searx_searx/searx/query.py
# SPDX-License-Identifier: AGPL-3.0-or-later from abc import abstractmethod, ABC import re from searx.languages import language_codes from searx.engines import categories, engines, engine_shortcuts from searx.external_bang import get_bang_definition_and_autocomplete from searx.search import EngineRef from searx.webut...
11,898
Python
.py
264
34.287879
118
0.593534
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,615
testing.py
searx_searx/searx/testing.py
# -*- coding: utf-8 -*- # SPDX-License-Identifier: AGPL-3.0-or-later """Shared testing code.""" # pylint: disable=missing-function-docstring,consider-using-with import os import subprocess import traceback from os.path import dirname, join, abspath, realpath from unittest import TestCase from splinter import Browse...
3,215
Python
.py
89
28.764045
93
0.629199
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,616
exceptions.py
searx_searx/searx/exceptions.py
''' searx is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. searx is distributed in the hope that it will be useful, but WITHOUT ANY WA...
3,416
Python
.py
69
43.898551
77
0.713553
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,617
external_urls.py
searx_searx/searx/external_urls.py
import math from searx.data import EXTERNAL_URLS IMDB_PREFIX_TO_URL_ID = { 'tt': 'imdb_title', 'mn': 'imdb_name', 'ch': 'imdb_character', 'co': 'imdb_company', 'ev': 'imdb_event' } HTTP_WIKIMEDIA_IMAGE = 'http://commons.wikimedia.org/wiki/Special:FilePath/' def get_imdb_url_id(imdb_item_id): ...
2,557
Python
.py
68
31.044118
92
0.622466
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,618
preferences.py
searx_searx/searx/preferences.py
# SPDX-License-Identifier: AGPL-3.0-or-later """Searx preferences implementation. """ # pylint: disable=useless-object-inheritance from base64 import urlsafe_b64encode, urlsafe_b64decode from zlib import compress, decompress from urllib.parse import parse_qs, urlencode from searx import settings, autocomplete from s...
20,475
Python
.py
459
33.27451
117
0.576218
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,619
version.py
searx_searx/searx/version.py
# -*- coding: utf-8 -*- ''' searx is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. searx is distributed in the hope that it will be us...
927
Python
.py
21
39.285714
75
0.710322
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,620
external_bang.py
searx_searx/searx/external_bang.py
# SPDX-License-Identifier: AGPL-3.0-or-later from searx.data import EXTERNAL_BANGS def get_node(external_bangs_db, bang): node = external_bangs_db['trie'] after = '' before = '' for bang_letter in bang: after += bang_letter if after in node and isinstance(node, dict): node...
2,962
Python
.py
69
35.898551
110
0.657153
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,621
__init__.py
searx_searx/searx/data/__init__.py
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """This module holds the *data* created by:: make data.all """ __all__ = [ 'ENGINES_LANGUAGES', 'CURRENCIES', 'USER_AGENTS', 'EXTERNAL_URLS', 'WIKIDATA_UNITS', 'EXTERNAL_BANGS', 'OSM_KEYS_TAGS', 'ahmia_blacklist_loader', ] ...
1,212
Python
.py
36
30.055556
84
0.692771
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,622
apkmirror.py
searx_searx/searx/engines/apkmirror.py
# SPDX-License-Identifier: AGPL-3.0-or-later """APKMirror """ # pylint: disable=invalid-name, missing-function-docstring from urllib.parse import urlencode from lxml import html from searx import logger from searx.utils import ( eval_xpath_list, eval_xpath_getindex, extract_text, ) logger = logger.getCh...
1,606
Python
.py
51
26.627451
114
0.643693
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,623
bing.py
searx_searx/searx/engines/bing.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Bing (Web) """ import re from urllib.parse import urlencode from lxml import html from searx import logger from searx.utils import eval_xpath, extract_text, match_language logger = logger.getChild('bing engine') # about about = { "website": 'https://www.bing.com'...
4,021
Python
.py
100
33.39
110
0.609969
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,624
meilisearch.py
searx_searx/searx/engines/meilisearch.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Meilisearch """ # pylint: disable=global-statement, missing-function-docstring from json import loads, dumps base_url = 'http://localhost:7700' index = '' auth_key = '' facet_filters = [] _search_url = '' result_template = 'key-value.html' categories = ['general'] p...
1,230
Python
.py
42
24.619048
62
0.622545
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,625
unsplash.py
searx_searx/searx/engines/unsplash.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Unsplash """ from urllib.parse import urlencode, urlparse, urlunparse, parse_qsl from json import loads # about about = { "website": 'https://unsplash.com', "wikidata_id": 'Q28233552', "official_api_documentation": 'https://unsplash.com/developers', "u...
1,601
Python
.py
44
27.5
109
0.560802
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,626
genius.py
searx_searx/searx/engines/genius.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Genius """ from json import loads 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_official_ap...
2,563
Python
.py
74
26.810811
97
0.567327
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,627
etools.py
searx_searx/searx/engines/etools.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ eTools (Web) """ from lxml import html from urllib.parse import quote from searx.utils import extract_text, eval_xpath # about about = { "website": 'https://www.etools.ch', "wikidata_id": None, "official_api_documentation": None, "use_official_api": Fa...
1,345
Python
.py
42
26.761905
98
0.632273
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,628
duden.py
searx_searx/searx/engines/duden.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Duden """ import re from urllib.parse import quote, urljoin from lxml import html from searx.utils import extract_text, eval_xpath, eval_xpath_list, eval_xpath_getindex # about about = { "website": 'https://www.duden.de', "wikidata_id": 'Q73624591', "offic...
2,363
Python
.py
64
30.890625
110
0.629046
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,629
imdb.py
searx_searx/searx/engines/imdb.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 """ import json about = { "website": 'https://imdb.com/', "wikidata_id": 'Q37312', "official_api_documentation": None, "use_official_api": Fa...
1,390
Python
.py
47
24.319149
95
0.600749
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,630
sqlite.py
searx_searx/searx/engines/sqlite.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ SQLite database (Offline) """ # pylint: disable=missing-function-docstring import sqlite3 engine_type = 'offline' database = "" query_str = "" limit = 10 paging = True result_template = 'key-value.html' def init(engine_settings): if 'query_str' not in engine_se...
1,218
Python
.py
37
28.486486
100
0.667524
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,631
digg.py
searx_searx/searx/engines/digg.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Digg (News, Social media) """ # pylint: disable=missing-function-docstring from urllib.parse import urlencode from datetime import datetime from lxml import html from searx.utils import eval_xpath, extract_text # about about = { "website": 'https://digg.com', ...
1,791
Python
.py
55
27.163636
98
0.630296
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,632
loc.py
searx_searx/searx/engines/loc.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Library of Congress : images from Prints and Photographs Online Catalog """ from json import loads from urllib.parse import urlencode about = { "website": 'https://www.loc.gov/pictures/', "wikidata_id": 'Q131454', "official_api_documentation": 'https://...
1,769
Python
.py
49
29.632653
88
0.617284
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,633
reddit.py
searx_searx/searx/engines/reddit.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Reddit """ import json from datetime import datetime from urllib.parse import urlencode, urljoin, urlparse # about about = { "website": 'https://www.reddit.com/', "wikidata_id": 'Q1136', "official_api_documentation": 'https://www.reddit.com/dev/api', "...
2,143
Python
.py
63
27.603175
77
0.615795
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,634
youtube_noapi.py
searx_searx/searx/engines/youtube_noapi.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Youtube (Videos) """ from functools import reduce from json import loads, dumps from urllib.parse import quote_plus from random import random # about about = { "website": 'https://www.youtube.com/', "wikidata_id": 'Q866', "official_api_documentation": 'htt...
6,205
Python
.py
139
34.381295
104
0.577006
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,635
emojipedia.py
searx_searx/searx/engines/emojipedia.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Emojipedia """ from urllib.parse import urlencode from lxml import html from searx import logger from searx.utils import ( eval_xpath_list, eval_xpath_getindex, extract_text, ) logger = logger.getChild('Emojipedia engine') about = { "website": 'https...
1,399
Python
.py
49
23.22449
77
0.632607
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,636
github.py
searx_searx/searx/engines/github.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Github (IT) """ from json import loads from urllib.parse import urlencode # about about = { "website": 'https://github.com/', "wikidata_id": 'Q364', "official_api_documentation": 'https://developer.github.com/v3/', "use_official_api": True, "requir...
1,390
Python
.py
46
24.565217
95
0.627732
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,637
vimeo.py
searx_searx/searx/engines/vimeo.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Wikipedia (Web """ from urllib.parse import urlencode from json import loads from dateutil import parser # about about = { "website": 'https://vimeo.com/', "wikidata_id": 'Q156376', "official_api_documentation": 'http://developer.vimeo.com/api', "use_o...
1,989
Python
.py
55
28.981818
80
0.606976
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,638
piratebay.py
searx_searx/searx/engines/piratebay.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Piratebay (Videos, Music, Files) """ from json import loads from datetime import datetime from operator import itemgetter from urllib.parse import quote from searx.utils import get_torrent_size # about about = { "website": 'https://thepiratebay.org', "wikidat...
2,804
Python
.py
80
28.2875
92
0.621162
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,639
microsoft_academic.py
searx_searx/searx/engines/microsoft_academic.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Microsoft Academic (Science) """ from json import dumps, loads from searx.utils import html_to_text # about about = { "website": 'https://academic.microsoft.com', "wikidata_id": 'Q28136779', "official_api_documentation": 'http://ma-graph.org/', "use_of...
1,770
Python
.py
59
23.864407
73
0.592811
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,640
semantic_scholar.py
searx_searx/searx/engines/semantic_scholar.py
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """Semantic Scholar (Science) """ from json import dumps, loads from datetime import datetime about = { "website": 'https://www.semanticscholar.org/', "wikidata_id": 'Q22908627', "official_api_documentation": 'https://api.semanticscholar.org/', ...
2,170
Python
.py
64
26.734375
74
0.591583
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,641
openverse.py
searx_searx/searx/engines/openverse.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://search.creativecommons.org/', "wikidata_id": None, "official_api_documentation": 'https://...
1,219
Python
.py
35
28.828571
80
0.638937
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,642
invidious.py
searx_searx/searx/engines/invidious.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Invidious (Videos) """ from urllib.parse import quote_plus from dateutil import parser import time import random # about about = { "website": 'https://api.invidious.io/', "wikidata_id": 'Q79343316', "official_api_documentation": 'https://github.com/iv-org/...
3,307
Python
.py
100
24.04
95
0.540973
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,643
freesound.py
searx_searx/searx/engines/freesound.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Freesound (Sound) """ from json import loads from urllib.parse import urlencode from datetime import datetime disabled = True api_key = "" # about about = { "website": "https://freesound.org", "wikidata_id": "Q835703", "official_api_documentation": "https:...
1,672
Python
.py
57
23.631579
112
0.62383
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,644
mixcloud.py
searx_searx/searx/engines/mixcloud.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Mixcloud (Music) """ from json import loads from dateutil import parser from urllib.parse import urlencode # about about = { "website": 'https://www.mixcloud.com/', "wikidata_id": 'Q6883832', "official_api_documentation": 'http://www.mixcloud.com/developer...
1,695
Python
.py
49
28.081633
102
0.621091
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,645
digbt.py
searx_searx/searx/engines/digbt.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ DigBT (Videos, Music, Files) """ from urllib.parse import urljoin from lxml import html from searx.utils import extract_text, get_torrent_size # about about = { "website": 'https://digbt.org', "wikidata_id": None, "official_api_documentation": None, "u...
1,731
Python
.py
47
29.404255
90
0.589467
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,646
kickass.py
searx_searx/searx/engines/kickass.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Kickass Torrent (Videos, Music, Files) """ from lxml import html from operator import itemgetter from urllib.parse import quote, urljoin from searx.utils import extract_text, get_torrent_size, convert_str_to_int # about about = { "website": 'https://kickass.so', ...
2,978
Python
.py
74
32.121622
85
0.603329
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,647
tokyotoshokan.py
searx_searx/searx/engines/tokyotoshokan.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Tokyo Toshokan (A BitTorrent Library for Japanese Media) """ import re from urllib.parse import urlencode from lxml import html from datetime import datetime from searx.utils import extract_text, get_torrent_size, int_or_zero # about about = { "website": 'https://...
3,396
Python
.py
85
31.458824
85
0.585129
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,648
postgresql.py
searx_searx/searx/engines/postgresql.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ PostgreSQL database (Offline) """ # error is ignored because the admin has to # install it manually to use the engine # pylint: disable=import-error import psycopg2 engine_type = 'offline' host = "127.0.0.1" port = "5432" database = "" username = "" password = "" que...
1,574
Python
.py
52
25
100
0.65515
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,649
dailymotion.py
searx_searx/searx/engines/dailymotion.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Dailymotion (Videos) """ from json import loads from datetime import datetime from urllib.parse import urlencode from searx.utils import match_language, html_to_text # about about = { "website": 'https://www.dailymotion.com', "wikidata_id": 'Q769222', "off...
2,908
Python
.py
75
31.96
174
0.645552
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,650
www1x.py
searx_searx/searx/engines/www1x.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ 1x (Images) """ from lxml import html, etree from urllib.parse import urlencode, urljoin from searx.utils import extract_text, eval_xpath_list, eval_xpath_getindex # about about = { "website": 'https://1x.com/', "wikidata_id": None, "official_api_documenta...
1,624
Python
.py
46
29.26087
98
0.634971
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,651
google_news.py
searx_searx/searx/engines/google_news.py
# SPDX-License-Identifier: AGPL-3.0-or-later """Google (News) For detailed description of the *REST-full* API see: `Query Parameter Definitions`_. Not all parameters can be applied: - num_ : the number of search results is ignored - save_ : is ignored / Google-News results are always *SafeSearch* .. _Query Paramete...
6,438
Python
.py
156
34.942308
101
0.633055
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,652
currency_convert.py
searx_searx/searx/engines/currency_convert.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ currency convert (DuckDuckGo) """ import json # about about = { "website": 'https://duckduckgo.com/', "wikidata_id": 'Q12805', "official_api_documentation": 'https://duckduckgo.com/api', "use_official_api": False, "require_api_key": False, "res...
1,454
Python
.py
43
29
88
0.626429
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,653
wolframalpha_noapi.py
searx_searx/searx/engines/wolframalpha_noapi.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Wolfram|Alpha (Science) """ from json import loads from time import time from urllib.parse import urlencode from searx.poolrequests import get as http_get # about about = { "website": 'https://www.wolframalpha.com/', "wikidata_id": 'Q207006', "official_ap...
3,722
Python
.py
97
31.319588
119
0.613459
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,654
command.py
searx_searx/searx/engines/command.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Command (offline) """ import re from os.path import expanduser, isabs, realpath, commonprefix from shlex import split as shlex_split from subprocess import Popen, PIPE from threading import Thread from searx import logger engine_type = 'offline' paging = True comman...
5,340
Python
.py
129
33.697674
111
0.645898
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,655
frinkiac.py
searx_searx/searx/engines/frinkiac.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Frinkiac (Images) """ from json import loads from urllib.parse import urlencode # about about = { "website": 'https://frinkiac.com', "wikidata_id": 'Q24882614', "official_api_documentation": { 'url': None, 'comment': 'see https://github.com...
1,524
Python
.py
41
29.536585
114
0.598778
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,656
opensemantic.py
searx_searx/searx/engines/opensemantic.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Open Semantic Search """ from dateutil import parser from json import loads from urllib.parse import quote # about about = { "website": 'https://www.opensemanticsearch.org/', "wikidata_id": None, "official_api_documentation": 'https://www.opensemanticsearc...
1,146
Python
.py
37
26.243243
75
0.65
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,657
ipfs_search.py
searx_searx/searx/engines/ipfs_search.py
from urllib.parse import urlencode import json import re from datetime import datetime # config categories = ['general', 'images', 'music', 'videos'] paging = True time_range_support = True # url base_url = 'https://api.ipfs-search.com/v1/' search_string = 'search?{query} first-seen:{time_range} metadata.Content-Type...
2,504
Python
.py
70
30.014286
105
0.62837
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,658
deviantart.py
searx_searx/searx/engines/deviantart.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Deviantart (Images) """ # pylint: disable=missing-function-docstring from urllib.parse import urlencode from lxml import html # about about = { "website": 'https://www.deviantart.com/', "wikidata_id": 'Q46523', "official_api_documentation": 'https://www.de...
1,922
Python
.py
59
25.830508
75
0.585366
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,659
mediathekviewweb.py
searx_searx/searx/engines/mediathekviewweb.py
# SPDX-License-Identifier: AGPL-3.0-or-later """MediathekViewWeb (API) """ # pylint: disable=missing-function-docstring import datetime from json import loads, dumps about = { "website": 'https://mediathekviewweb.de/', "wikidata_id": 'Q27877380', "official_api_documentation": 'https://gist.github.com/ba...
1,547
Python
.py
53
23.283019
100
0.586207
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,660
google_scholar.py
searx_searx/searx/engines/google_scholar.py
# SPDX-License-Identifier: AGPL-3.0-or-later """Google (Scholar) For detailed description of the *REST-full* API see: `Query Parameter Definitions`_. .. _Query Parameter Definitions: https://developers.google.com/custom-search/docs/xml_results#WebSearch_Query_Parameter_Definitions """ # pylint: disable=invalid-na...
4,463
Python
.py
121
31.454545
113
0.644599
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,661
stackexchange.py
searx_searx/searx/engines/stackexchange.py
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """Stack Exchange API v2.3 * https://api.stackexchange.com/ """ import html from json import loads from urllib.parse import urlencode about = { "website": 'https://stackexchange.com', "wikidata_id": 'Q3495447', "official_api_documentation": 'ht...
1,528
Python
.py
49
25.734694
77
0.609172
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,662
xpath_flex.py
searx_searx/searx/engines/xpath_flex.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ xPath Flex Engine (xpath_flex) Aims to be a more flexible engine that covers xpath use cases for all categories (as it allows to override the result template). The engine configuration expects you to specify a 'field_definition' dictionary with the following proper...
4,552
Python
.py
97
39.824742
113
0.65606
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,663
yahoo_news.py
searx_searx/searx/engines/yahoo_news.py
# SPDX-License-Identifier: AGPL-3.0-or-later """Yahoo (News) Yahoo News is "English only" and do not offer localized nor language queries. """ # pylint: disable=invalid-name, missing-function-docstring import re from urllib.parse import urlencode from datetime import datetime, timedelta from dateutil import parser ...
2,914
Python
.py
89
26.865169
90
0.624688
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,664
pubmed.py
searx_searx/searx/engines/pubmed.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ PubMed (Scholar publications) """ from flask_babel import gettext from lxml import etree from datetime import datetime from urllib.parse import urlencode from searx.poolrequests import get # about about = { "website": 'https://www.ncbi.nlm.nih.gov/pubmed/', "w...
3,267
Python
.py
78
33.25641
108
0.608476
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,665
translated.py
searx_searx/searx/engines/translated.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ MyMemory Translated """ # about about = { "website": 'https://mymemory.translated.net/', "wikidata_id": None, "official_api_documentation": 'https://mymemory.translated.net/doc/spec.php', "use_official_api": True, "require_api_key": False, "resu...
1,492
Python
.py
44
26.795455
93
0.581541
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,666
searchcode_code.py
searx_searx/searx/engines/searchcode_code.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Searchcode (IT) """ from json import loads from urllib.parse import urlencode # about about = { "website": 'https://searchcode.com/', "wikidata_id": None, "official_api_documentation": 'https://searchcode.com/api/', "use_official_api": True, "requi...
1,846
Python
.py
55
25.927273
97
0.564507
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,667
wordnik.py
searx_searx/searx/engines/wordnik.py
# SPDX-License-Identifier: AGPL-3.0-or-later """Wordnik (general) """ from lxml.html import fromstring from searx import logger from searx.utils import extract_text from searx.raise_for_httperror import raise_for_httperror logger = logger.getChild('Wordnik engine') # about about = { "website": 'https://www.word...
2,003
Python
.py
59
27.627119
70
0.603323
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,668
1337x.py
searx_searx/searx/engines/1337x.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ 1337x """ from urllib.parse import quote, urljoin from lxml import html from searx.utils import extract_text, get_torrent_size, eval_xpath, eval_xpath_list, eval_xpath_getindex # about about = { "website": 'https://1337x.to/', "wikidata_id": 'Q28134166', "...
1,734
Python
.py
41
35.317073
104
0.619869
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,669
lingva.py
searx_searx/searx/engines/lingva.py
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """Lingva (alternative Google Translate frontend)""" from json import loads about = { "website": 'https://lingva.ml', "wikidata_id": None, "official_api_documentation": 'https://github.com/thedaviddelta/lingva-translate#public-apis', "use_off...
1,906
Python
.py
50
30.52
102
0.591948
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,670
arxiv.py
searx_searx/searx/engines/arxiv.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ ArXiV (Scientific preprints) """ from lxml import html from datetime import datetime from searx.utils import eval_xpath_list, eval_xpath_getindex # about about = { "website": 'https://arxiv.org', "wikidata_id": 'Q118398', "official_api_documentation": 'htt...
2,124
Python
.py
52
33.75
115
0.630063
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,671
mysql_server.py
searx_searx/searx/engines/mysql_server.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ MySQL database (Offline) """ # error is ignored because the admin has to # install it manually to use the engine # pylint: disable=import-error import mysql.connector engine_type = 'offline' auth_plugin = 'caching_sha2_password' host = "127.0.0.1" port = 3306 databa...
1,437
Python
.py
47
26.085106
100
0.674909
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,672
flickr.py
searx_searx/searx/engines/flickr.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...
2,536
Python
.py
69
28.275362
101
0.581833
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,673
solr.py
searx_searx/searx/engines/solr.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Solr """ # pylint: disable=global-statement, missing-function-docstring from json import loads from urllib.parse import urlencode from searx.exceptions import SearxEngineAPIException base_url = 'http://localhost:8983' collection = '' rows = 10 sort = '' # sorting: a...
1,825
Python
.py
54
28.851852
72
0.648772
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,674
btdigg.py
searx_searx/searx/engines/btdigg.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ BTDigg (Videos, Music, Files) """ from lxml import html from urllib.parse import quote, urljoin from searx.utils import extract_text, get_torrent_size # about about = { "website": 'https://btdig.com', "wikidata_id": 'Q4836698', "official_api_documentation"...
2,675
Python
.py
69
30.884058
97
0.592034
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,675
openstreetmap.py
searx_searx/searx/engines/openstreetmap.py
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """OpenStreetMap (Map) """ # pylint: disable=missing-function-docstring import re from json import loads from urllib.parse import urlencode from functools import partial from flask_babel import gettext from searx.data import OSM_KEYS_TAGS, CURRENCIES from ...
15,495
Python
.py
378
33.293651
160
0.609675
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,676
springer.py
searx_searx/searx/engines/springer.py
# SPDX-License-Identifier: AGPL-3.0-or-later """Springer Nature (science) """ # pylint: disable=missing-function-docstring from datetime import datetime from json import loads from urllib.parse import urlencode from searx import logger from searx.exceptions import SearxEngineAPIException logger = logger.getChild('...
2,076
Python
.py
59
28.847458
79
0.615385
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,677
duckduckgo_definitions.py
searx_searx/searx/engines/duckduckgo_definitions.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ DuckDuckGo (Instant Answer API) """ import json from urllib.parse import urlencode, urlparse, urljoin from lxml import html from searx import logger from searx.data import WIKIDATA_UNITS from searx.engines.duckduckgo import language_aliases from searx.engines.duckduck...
10,105
Python
.py
222
33.752252
128
0.562373
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,678
sjp.py
searx_searx/searx/engines/sjp.py
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """Słownik Języka Polskiego Dictionary of the polish language from PWN (sjp.pwn) """ from lxml.html import fromstring from searx import logger from searx.utils import extract_text from searx.raise_for_httperror import raise_for_httperror logger = logger.get...
2,874
Python
.py
74
29.972973
99
0.565515
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,679
ina.py
searx_searx/searx/engines/ina.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ INA (Videos) """ from json import loads from html import unescape from urllib.parse import urlencode from lxml import html from dateutil import parser from searx.utils import extract_text # about about = { "website": 'https://www.ina.fr/', "wikidata_id": 'Q166...
2,526
Python
.py
71
28.619718
112
0.611225
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,680
torrentz.py
searx_searx/searx/engines/torrentz.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Torrentz2.is (BitTorrent meta-search engine) """ import re from urllib.parse import urlencode from lxml import html from datetime import datetime from searx.utils import extract_text, get_torrent_size # about about = { "website": 'https://torrentz2.is/', "wiki...
2,745
Python
.py
79
27.506329
80
0.595616
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,681
spotify.py
searx_searx/searx/engines/spotify.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Spotify (Music) """ from json import loads from urllib.parse import urlencode import requests import base64 # about about = { "website": 'https://www.spotify.com', "wikidata_id": 'Q689141', "official_api_documentation": 'https://developer.spotify.com/web-a...
2,250
Python
.py
64
28.484375
90
0.602121
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,682
pdbe.py
searx_searx/searx/engines/pdbe.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ PDBe (Protein Data Bank in Europe) """ from json import loads from flask_babel import gettext # about about = { "website": 'https://www.ebi.ac.uk/pdbe', "wikidata_id": 'Q55823905', "official_api_documentation": 'https://www.ebi.ac.uk/pdbe/api/doc/search.ht...
3,636
Python
.py
93
31.268817
116
0.607498
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,683
mediawiki.py
searx_searx/searx/engines/mediawiki.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ General mediawiki-engine (Web) """ from json import loads from string import Formatter from urllib.parse import urlencode, quote # about about = { "website": None, "wikidata_id": None, "official_api_documentation": 'http://www.mediawiki.org/wiki/API:Search...
2,429
Python
.py
69
29.057971
95
0.622061
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,684
bing_images.py
searx_searx/searx/engines/bing_images.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Bing (Images) """ from urllib.parse import urlencode from lxml import html from json import loads from searx.utils import match_language from searx.engines.bing import language_aliases from searx.engines.bing import _fetch_supported_languages, supported_languages_url ...
3,425
Python
.py
85
32.2
122
0.595963
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,685
google_play_apps.py
searx_searx/searx/engines/google_play_apps.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Google Play Apps """ from urllib.parse import urlencode from lxml import html from searx.utils import ( eval_xpath, extract_url, extract_text, eval_xpath_list, eval_xpath_getindex, ) about = { "website": "https://play.google.com/", "wikida...
2,201
Python
.py
53
35.509434
105
0.614447
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,686
nyaa.py
searx_searx/searx/engines/nyaa.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Nyaa.si (Anime Bittorrent tracker) """ from lxml import html from urllib.parse import urlencode from searx.utils import extract_text, get_torrent_size, int_or_zero # about about = { "website": 'https://nyaa.si/', "wikidata_id": None, "official_api_document...
3,232
Python
.py
89
28.044944
76
0.590836
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,687
peertube.py
searx_searx/searx/engines/peertube.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ peertube (Videos) """ from json import loads from datetime import datetime from urllib.parse import urlencode from searx.utils import html_to_text # about about = { "website": 'https://joinpeertube.org', "wikidata_id": 'Q50938515', "official_api_documentat...
2,758
Python
.py
80
28.0625
98
0.626597
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,688
flickr_noapi.py
searx_searx/searx/engines/flickr_noapi.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Flickr (Images) """ from json import loads from time import time import re from urllib.parse import urlencode from searx.engines import logger from searx.utils import ecma_unescape, html_to_text logger = logger.getChild('flickr-noapi') # about about = { "website"...
4,059
Python
.py
101
32.366337
102
0.586979
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,689
__init__.py
searx_searx/searx/engines/__init__.py
''' searx is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. searx is distributed in the hope that it will be useful, but WITHOUT ANY W...
11,363
Python
.py
253
35.87747
112
0.624423
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,690
seznam.py
searx_searx/searx/engines/seznam.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Seznam """ from urllib.parse import urlencode, urlparse from lxml import html from searx.poolrequests import get from searx.exceptions import SearxEngineAccessDeniedException from searx.utils import ( extract_text, eval_xpath_list, eval_xpath_getindex, ...
1,903
Python
.py
55
29.145455
112
0.647603
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,691
google_videos.py
searx_searx/searx/engines/google_videos.py
# SPDX-License-Identifier: AGPL-3.0-or-later """Google (Video) For detailed description of the *REST-full* API see: `Query Parameter Definitions`_. Not all parameters can be applied. .. _admonition:: Content-Security-Policy (CSP) This engine needs to allow images from the `data URLs`_ (prefixed with the ``dat...
6,301
Python
.py
161
32.869565
101
0.627686
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,692
google.py
searx_searx/searx/engines/google.py
# SPDX-License-Identifier: AGPL-3.0-or-later """Google (Web) For detailed description of the *REST-full* API see: `Query Parameter Definitions`_. .. _Query Parameter Definitions: https://developers.google.com/custom-search/docs/xml_results#WebSearch_Query_Parameter_Definitions """ # pylint: disable=invalid-name, ...
11,180
Python
.py
275
34.16
112
0.601328
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,693
onesearch.py
searx_searx/searx/engines/onesearch.py
"""Onesearch """ from lxml.html import fromstring import re from searx.utils import ( eval_xpath, extract_text, ) from urllib.parse import unquote # about about = { "website": 'https://www.onesearch.com/', "wikidata_id": None, "use_official_api": False, "require_api_key": False, "resul...
1,380
Python
.py
41
29.146341
110
0.647014
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,694
youtube_api.py
searx_searx/searx/engines/youtube_api.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Youtube (Videos) """ from json import loads from dateutil import parser from urllib.parse import urlencode from searx.exceptions import SearxEngineAPIException # about about = { "website": 'https://www.youtube.com/', "wikidata_id": 'Q866', "official_api_do...
2,572
Python
.py
67
31.253731
104
0.627973
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,695
startpage.py
searx_searx/searx/engines/startpage.py
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """Startpage (Web) """ import re from time import time from urllib.parse import urlencode from unicodedata import normalize, combining from datetime import datetime, timedelta from dateutil import parser from lxml import html from babel import Locale from ...
8,949
Python
.py
210
34.933333
139
0.625346
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,696
soundcloud.py
searx_searx/searx/engines/soundcloud.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Soundcloud (Music) """ import re from json import loads from lxml import html from dateutil import parser from urllib.parse import quote_plus, urlencode from searx import logger from searx.poolrequests import get as http_get # about about = { "website": 'https://s...
3,457
Python
.py
87
30.770115
101
0.587216
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,697
qwant.py
searx_searx/searx/engines/qwant.py
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """Qwant (Web, News, Images, Videos) This engine uses the Qwant API (https://api.qwant.com/v3). The API is undocumented but can be reverse engineered by reading the network log of https://www.qwant.com/ queries. This implementation is used by different qwant...
7,936
Python
.py
215
26.083721
96
0.532682
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,698
gigablast.py
searx_searx/searx/engines/gigablast.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ Gigablast (Web) """ # pylint: disable=missing-function-docstring, invalid-name import re from json import loads, JSONDecodeError from urllib.parse import urlencode from searx.exceptions import SearxEngineResponseException from searx.poolrequests import get # about abo...
3,917
Python
.py
108
30.12963
115
0.632178
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
31,699
base.py
searx_searx/searx/engines/base.py
# SPDX-License-Identifier: AGPL-3.0-or-later """ BASE (Scholar publications) """ from urllib.parse import urlencode from lxml import etree from datetime import datetime import re from searx.utils import searx_useragent # about about = { "website": 'https://base-search.net', "wikidata_id": 'Q448335', "off...
3,273
Python
.py
93
27.075269
82
0.576996
searx/searx
13,357
1,707
340
AGPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)