.oO SearXNG Developer Documentation Oo.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Files
File List
▼
.oO SearXNG Developer Documentation Oo.
Doxygen docs for searxng
►
Über SearXNG
►
Suchbegriffe
►
About SearXNG
►
Search syntax
►
درباره SearXNG
►
نحو جستجو
►
A propos de SearXNG
►
Syntaxe de recherche
►
Tentang SearXNG
►
Sintaks pencarian
►
Informazioni su SearXNG
►
Sintassi di ricerca
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
searxng
▼
searx
►
answerers
►
botdetection
►
data
►
enginelib
▼
engines
►
1337x.py
►
360search.py
►
360search_videos.py
►
9gag.py
►
__init__.py
►
acfun.py
►
adobe_stock.py
►
ahmia.py
►
alpinelinux.py
►
annas_archive.py
►
apkmirror.py
►
apple_app_store.py
►
apple_maps.py
►
archlinux.py
►
artic.py
►
arxiv.py
►
ask.py
►
astrophysics_data_system.py
►
baidu.py
►
bandcamp.py
►
base.py
►
bilibili.py
►
bing.py
►
bing_images.py
►
bing_news.py
►
bing_videos.py
►
bitchute.py
►
bpb.py
►
brave.py
►
bt4g.py
►
btdigg.py
►
ccc_media.py
►
chefkoch.py
►
chinaso.py
►
cloudflareai.py
►
command.py
►
core.py
►
cppreference.py
►
crates.py
►
crossref.py
►
currency_convert.py
►
dailymotion.py
►
deepl.py
►
deezer.py
►
demo_offline.py
►
demo_online.py
►
destatis.py
►
deviantart.py
►
dictzone.py
►
digbt.py
►
discourse.py
►
docker_hub.py
►
doku.py
►
duckduckgo.py
►
duckduckgo_definitions.py
►
duckduckgo_extra.py
►
duckduckgo_weather.py
►
duden.py
►
dummy-offline.py
►
dummy.py
►
ebay.py
►
elasticsearch.py
►
emojipedia.py
►
fdroid.py
►
findthatmeme.py
►
flickr.py
►
flickr_noapi.py
►
freesound.py
►
frinkiac.py
►
fyyd.py
►
geizhals.py
►
genius.py
►
gitea.py
►
github.py
►
gitlab.py
►
goodreads.py
►
google.py
►
google_images.py
►
google_news.py
►
google_play.py
►
google_scholar.py
►
google_videos.py
►
hackernews.py
►
hex.py
►
il_post.py
►
imdb.py
►
imgur.py
►
ina.py
►
invidious.py
►
ipernity.py
►
iqiyi.py
►
jisho.py
►
json_engine.py
►
kickass.py
►
lemmy.py
►
lib_rs.py
►
libretranslate.py
►
lingva.py
►
livespace.py
►
loc.py
►
mariadb_server.py
►
mastodon.py
►
material_icons.py
►
mediathekviewweb.py
►
mediawiki.py
►
meilisearch.py
►
metacpan.py
►
mixcloud.py
►
mojeek.py
►
mongodb.py
►
moviepilot.py
►
mozhi.py
►
mrs.py
►
mullvad_leta.py
►
mwmbl.py
►
mysql_server.py
►
niconico.py
►
npm.py
►
nyaa.py
►
odysee.py
►
ollama.py
►
open_meteo.py
►
openclipart.py
►
openlibrary.py
►
opensemantic.py
►
openstreetmap.py
►
openverse.py
►
pdbe.py
►
peertube.py
►
photon.py
►
pinterest.py
►
piped.py
►
piratebay.py
►
pixiv.py
►
pkg_go_dev.py
►
podcastindex.py
►
postgresql.py
►
presearch.py
►
public_domain_image_archive.py
►
pubmed.py
►
pypi.py
►
quark.py
►
qwant.py
►
radio_browser.py
►
recoll.py
►
reddit.py
►
redis_server.py
►
reuters.py
►
rottentomatoes.py
►
rumble.py
►
scanr_structures.py
►
searchcode_code.py
►
searx_engine.py
►
seekr.py
►
selfhst.py
►
semantic_scholar.py
►
sepiasearch.py
►
seznam.py
►
sogou.py
►
sogou_images.py
►
sogou_videos.py
►
sogou_wechat.py
►
solidtorrents.py
►
solr.py
►
soundcloud.py
►
spotify.py
►
springer.py
►
sqlite.py
►
stackexchange.py
►
startpage.py
►
stract.py
►
svgrepo.py
►
tagesschau.py
►
tineye.py
►
tokyotoshokan.py
►
tootfinder.py
►
torznab.py
►
translated.py
►
unsplash.py
►
vimeo.py
►
voidlinux.py
►
wallhaven.py
►
wikicommons.py
►
wikidata.py
►
wikipedia.py
►
wolframalpha_api.py
►
wolframalpha_noapi.py
►
wordnik.py
►
wttr.py
►
www1x.py
►
xpath.py
►
yacy.py
►
yahoo.py
►
yahoo_news.py
►
yandex.py
►
yandex_music.py
►
yep.py
►
youtube_api.py
►
youtube_noapi.py
►
yummly.py
►
zlibrary.py
►
favicons
►
infopage
►
metrics
►
network
►
plugins
►
result_types
►
search
►
__init__.py
►
autocomplete.py
►
babel_extract.py
►
compat.py
►
exceptions.py
►
extended_types.py
►
external_bang.py
►
external_urls.py
►
flaskfix.py
►
limiter.py
►
locales.py
►
openmetrics.py
►
preferences.py
►
query.py
►
redisdb.py
►
redislib.py
►
results.py
►
settings_defaults.py
►
settings_loader.py
►
sqlitedb.py
►
sxng_locales.py
►
unixthreadname.py
►
utils.py
►
version.py
►
webadapter.py
►
webapp.py
►
webutils.py
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
Loading...
Searching...
No Matches
mediathekviewweb.py
Go to the documentation of this file.
1
# SPDX-License-Identifier: AGPL-3.0-or-later
2
"""MediathekViewWeb (API)
3
4
"""
5
6
import
datetime
7
from
json
import
loads, dumps
8
9
about = {
10
"website"
:
'https://mediathekviewweb.de/'
,
11
"wikidata_id"
:
'Q27877380'
,
12
"official_api_documentation"
:
'https://gist.github.com/bagbag/a2888478d27de0e989cf777f81fb33de'
,
13
"use_official_api"
:
True
,
14
"require_api_key"
:
False
,
15
"results"
:
'JSON'
,
16
"language"
:
"de"
,
17
}
18
19
categories = [
'videos'
]
20
paging =
True
21
time_range_support =
False
22
safesearch =
False
23
24
25
def
request
(query, params):
26
27
params[
'url'
] =
'https://mediathekviewweb.de/api/query'
28
params[
'method'
] =
'POST'
29
params[
'headers'
][
'Content-type'
] =
'text/plain'
30
params[
'data'
] = dumps(
31
{
32
'queries'
: [
33
{
34
'fields'
: [
35
'title'
,
36
'topic'
,
37
],
38
'query'
: query,
39
},
40
],
41
'sortBy'
:
'timestamp'
,
42
'sortOrder'
:
'desc'
,
43
'future'
:
True
,
44
'offset'
: (params[
'pageno'
] - 1) * 10,
45
'size'
: 10,
46
}
47
)
48
return
params
49
50
25
def
request
(query, params):
…
51
def
response
(resp):
52
53
resp = loads(resp.text)
54
55
mwv_result = resp[
'result'
]
56
mwv_result_list = mwv_result[
'results'
]
57
58
results = []
59
60
for
item
in
mwv_result_list:
61
62
item[
'hms'
] = str(datetime.timedelta(seconds=item[
'duration'
]))
63
64
results.append(
65
{
66
'url'
: item[
'url_video_hd'
].replace(
"http://"
,
"https://"
),
67
'title'
:
"%(channel)s: %(title)s (%(hms)s)"
% item,
68
'length'
: item[
'hms'
],
69
'content'
:
"%(description)s"
% item,
70
'iframe_src'
: item[
'url_video_hd'
].replace(
"http://"
,
"https://"
),
71
'template'
:
'videos.html'
,
72
}
73
)
74
75
return
results
51
def
response
(resp):
…
searx.engines.mediathekviewweb.request
request(query, params)
Definition
mediathekviewweb.py:25
searx.engines.mediathekviewweb.response
response(resp)
Definition
mediathekviewweb.py:51
searxng
searx
engines
mediathekviewweb.py
Generated on Sat Apr 5 2025 21:19:37 for .oO SearXNG Developer Documentation Oo. by
1.13.2