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

Functions

 request (query, params)
 
 response (resp)
 

Variables

dict about
 
list categories = []
 
str base_url = 'https://emojipedia.org'
 
str search_url = base_url + '/search?{query}'
 

Detailed Description

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/Emojipedia

Function Documentation

◆ request()

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

Definition at line 34 of file emojipedia.py.

34def request(query, params):
35 params['url'] = search_url.format(
36 query=urlencode({'q': query}),
37 )
38 return params
39
40

◆ response()

searx.engines.emojipedia.response ( resp)

Definition at line 41 of file emojipedia.py.

41def response(resp):
42 results = []
43
44 dom = html.fromstring(resp.text)
45
46 for result in eval_xpath_list(dom, '//div[starts-with(@class, "EmojisList")]/a'):
47
48 url = base_url + result.attrib.get('href')
49 res = {'url': url, 'title': extract_text(result), 'content': ''}
50
51 results.append(res)
52
53 return results

Variable Documentation

◆ about

dict searx.engines.emojipedia.about
Initial value:
1= {
2 "website": 'https://emojipedia.org',
3 "wikidata_id": 'Q22908129',
4 "official_api_documentation": None,
5 "use_official_api": False,
6 "require_api_key": False,
7 "results": 'HTML',
8}

Definition at line 19 of file emojipedia.py.

◆ base_url

str searx.engines.emojipedia.base_url = 'https://emojipedia.org'

Definition at line 30 of file emojipedia.py.

◆ categories

list searx.engines.emojipedia.categories = []

Definition at line 28 of file emojipedia.py.

◆ search_url

str searx.engines.emojipedia.search_url = base_url + '/search?{query}'

Definition at line 31 of file emojipedia.py.