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

Functions

 request (query, params)
 
 response (resp)
 

Variables

dict about
 
list categories = ['files', 'apps']
 
bool safesearch = True
 
str search_url = 'https://itunes.apple.com/search?{query}'
 

Detailed Description

Apple App Store

Function Documentation

◆ request()

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

Definition at line 28 of file apple_app_store.py.

28def request(query, params):
29 explicit = "Yes"
30
31 if params['safesearch'] > 0:
32 explicit = "No"
33
34 params['url'] = search_url.format(query=urlencode({'term': query, 'media': 'software', 'explicit': explicit}))
35
36 return params
37
38

◆ response()

searx.engines.apple_app_store.response ( resp)

Definition at line 39 of file apple_app_store.py.

39def response(resp):
40 results = []
41
42 json_result = loads(resp.text)
43
44 for result in json_result['results']:
45 results.append(
46 {
47 'url': result['trackViewUrl'],
48 'title': result['trackName'],
49 'content': result['description'],
50 'thumbnail': result['artworkUrl100'],
51 'publishedDate': parse(result['currentVersionReleaseDate']),
52 'author': result['sellerName'],
53 }
54 )
55
56 return results

Variable Documentation

◆ about

dict searx.engines.apple_app_store.about
Initial value:
1= {
2 "website": 'https://www.apple.com/app-store/',
3 "wikidata_id": 'Q368215',
4 "official_api_documentation": (
5 'https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/'
6 'iTuneSearchAPI/UnderstandingSearchResults.html#//apple_ref/doc/uid/TP40017632-CH8-SW1'
7 ),
8 "use_official_api": True,
9 "require_api_key": False,
10 "results": 'JSON',
11}

Definition at line 10 of file apple_app_store.py.

◆ categories

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

Definition at line 22 of file apple_app_store.py.

◆ safesearch

bool searx.engines.apple_app_store.safesearch = True

Definition at line 23 of file apple_app_store.py.

◆ search_url

str searx.engines.apple_app_store.search_url = 'https://itunes.apple.com/search?{query}'

Definition at line 25 of file apple_app_store.py.