29 update_time = time() - (time() % 1800)
32 token_response = http_get(
'https://duckduckgo.com/local.js?get_mk_token=1', timeout=2.0)
33 actual_token = http_get(
34 'https://cdn.apple-mapkit.com/ma/bootstrap?apiVersion=2&mkjsVersion=5.72.53&poi=1',
36 headers={
'Authorization':
'Bearer ' + token_response.text},
38 token[
'value'] = loads(actual_token.text)[
'authInfo'][
'access_token']
39 token[
'last_updated'] = update_time