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

Functions

 request (query, params)
 
 response (resp)
 

Variables

dict about
 
list categories = ['images']
 
str BASE = 'https://frinkiac.com/'
 
str SEARCH_URL = '{base}api/search?{query}'
 
str RESULT_URL = '{base}?{query}'
 
str THUMB_URL = '{base}img/{episode}/{timestamp}/medium.jpg'
 
str IMAGE_URL = '{base}img/{episode}/{timestamp}.jpg'
 

Detailed Description

 Frinkiac (Images)

Function Documentation

◆ request()

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

Definition at line 28 of file frinkiac.py.

28def request(query, params):
29 params['url'] = SEARCH_URL.format(base=BASE, query=urlencode({'q': query}))
30 return params
31
32

◆ response()

searx.engines.frinkiac.response ( resp)

Definition at line 33 of file frinkiac.py.

33def response(resp):
34 results = []
35 response_data = loads(resp.text)
36 for result in response_data:
37 episode = result['Episode']
38 timestamp = result['Timestamp']
39
40 results.append(
41 {
42 'template': 'images.html',
43 'url': RESULT_URL.format(base=BASE, query=urlencode({'p': 'caption', 'e': episode, 't': timestamp})),
44 'title': episode,
45 'content': '',
46 'thumbnail_src': THUMB_URL.format(base=BASE, episode=episode, timestamp=timestamp),
47 'img_src': IMAGE_URL.format(base=BASE, episode=episode, timestamp=timestamp),
48 }
49 )
50
51 return results

Variable Documentation

◆ about

dict searx.engines.frinkiac.about
Initial value:
1= {
2 "website": 'https://frinkiac.com',
3 "wikidata_id": 'Q24882614',
4 "official_api_documentation": {'url': None, 'comment': 'see https://github.com/MitchellAW/CompuGlobal'},
5 "use_official_api": False,
6 "require_api_key": False,
7 "results": 'JSON',
8}

Definition at line 10 of file frinkiac.py.

◆ BASE

str searx.engines.frinkiac.BASE = 'https://frinkiac.com/'

Definition at line 21 of file frinkiac.py.

◆ categories

list searx.engines.frinkiac.categories = ['images']

Definition at line 19 of file frinkiac.py.

◆ IMAGE_URL

str searx.engines.frinkiac.IMAGE_URL = '{base}img/{episode}/{timestamp}.jpg'

Definition at line 25 of file frinkiac.py.

◆ RESULT_URL

str searx.engines.frinkiac.RESULT_URL = '{base}?{query}'

Definition at line 23 of file frinkiac.py.

◆ SEARCH_URL

str searx.engines.frinkiac.SEARCH_URL = '{base}api/search?{query}'

Definition at line 22 of file frinkiac.py.

◆ THUMB_URL

str searx.engines.frinkiac.THUMB_URL = '{base}img/{episode}/{timestamp}/medium.jpg'

Definition at line 24 of file frinkiac.py.