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

Functions

 request (query, params)
 
 response (resp)
 

Variables

dict about
 
list categories = ['files', 'apps']
 
bool paging = True
 
bool time_range_support = False
 
str base_url = 'https://www.apkmirror.com'
 
str search_url = base_url + '/?post_type=app_release&searchtype=apk&page={pageno}&{query}'
 

Detailed Description

APKMirror

Function Documentation

◆ request()

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

Definition at line 35 of file apkmirror.py.

35def request(query, params):
36 params['url'] = search_url.format(
37 pageno=params['pageno'],
38 query=urlencode({'s': query}),
39 )
40 logger.debug("query_url --> %s", params['url'])
41 return params
42
43

◆ response()

searx.engines.apkmirror.response ( resp)

Definition at line 44 of file apkmirror.py.

44def response(resp):
45 results = []
46
47 dom = html.fromstring(resp.text)
48
49 # parse results
50 for result in eval_xpath_list(dom, "//div[@id='content']//div[@class='listWidget']/div/div[@class='appRow']"):
51
52 link = eval_xpath_getindex(result, './/h5/a', 0)
53
54 url = base_url + link.attrib.get('href') + '#downloads'
55 title = extract_text(link)
56 thumbnail = base_url + eval_xpath_getindex(result, './/img/@src', 0)
57 res = {'url': url, 'title': title, 'thumbnail': thumbnail}
58
59 results.append(res)
60
61 return results

Variable Documentation

◆ about

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

Definition at line 16 of file apkmirror.py.

◆ base_url

str searx.engines.apkmirror.base_url = 'https://www.apkmirror.com'

Definition at line 31 of file apkmirror.py.

◆ categories

list searx.engines.apkmirror.categories = ['files', 'apps']

Definition at line 26 of file apkmirror.py.

◆ paging

bool searx.engines.apkmirror.paging = True

Definition at line 27 of file apkmirror.py.

◆ search_url

str searx.engines.apkmirror.search_url = base_url + '/?post_type=app_release&searchtype=apk&page={pageno}&{query}'

Definition at line 32 of file apkmirror.py.

◆ time_range_support

bool searx.engines.apkmirror.time_range_support = False

Definition at line 28 of file apkmirror.py.