.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.engines.fyyd Namespace Reference

Functions

 request (query, params)
 
 response (resp)
 

Variables

dict about
 
list categories = []
 
bool paging = True
 
str base_url = "https://api.fyyd.de"
 
int page_size = 10
 

Detailed Description

Fyyd (podcasts)

Function Documentation

◆ request()

searx.engines.fyyd.request ( query,
params )

Definition at line 22 of file fyyd.py.

22def request(query, params):
23 args = {
24 'term': query,
25 'count': page_size,
26 'page': params['pageno'] - 1,
27 }
28 params['url'] = f"{base_url}/0.2/search/podcast?{urlencode(args)}"
29 return params
30
31

◆ response()

searx.engines.fyyd.response ( resp)

Definition at line 32 of file fyyd.py.

32def response(resp):
33 results = []
34
35 json_results = resp.json()['data']
36
37 for result in json_results:
38 results.append(
39 {
40 'url': result['htmlURL'],
41 'title': result['title'],
42 'content': result['description'],
43 'thumbnail': result['smallImageURL'],
44 'publishedDate': datetime.strptime(result['status_since'], '%Y-%m-%d %H:%M:%S'),
45 'metadata': f"Rank: {result['rank']} || {result['episode_count']} episodes",
46 }
47 )
48
49 return results

Variable Documentation

◆ about

dict searx.engines.fyyd.about
Initial value:
1= {
2 'website': 'https://fyyd.de',
3 'official_api_documentation': 'https://github.com/eazyliving/fyyd-api',
4 'use_official_api': True,
5 'require_api_key': False,
6 'results': 'JSON',
7}

Definition at line 8 of file fyyd.py.

◆ base_url

str searx.engines.fyyd.base_url = "https://api.fyyd.de"

Definition at line 18 of file fyyd.py.

◆ categories

list searx.engines.fyyd.categories = []

Definition at line 15 of file fyyd.py.

◆ page_size

int searx.engines.fyyd.page_size = 10

Definition at line 19 of file fyyd.py.

◆ paging

bool searx.engines.fyyd.paging = True

Definition at line 16 of file fyyd.py.