mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-20 06:47:06 -04:00
14 lines
365 B
Python
Executable File
14 lines
365 B
Python
Executable File
#!/usr/bin/env python3
|
|
#
|
|
# Fetch the list of most downloaded apps
|
|
|
|
import os
|
|
import requests
|
|
import json
|
|
|
|
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
r = requests.get('https://grote.gitlab.io/fdroid-metrics-distilled/top/50.json')
|
|
with open('app/src/main/assets/most_downloaded_apps.json', "w") as f:
|
|
json.dump(r.json(), f, indent=2)
|