add app version fetcher

main
David 2022-04-06 23:51:07 +02:00
parent fb493cf1b0
commit c70d2b41f5
2 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,55 @@
1.27
2.3
206.0
1.51
1.0.150
1.0.42
2.1.65
1.9.40904
2.0.648
6.13
86.0.0
1.8
163.0
2.9.1
2.3.18
1.13.7
2.220308.1
1.7.1
2.40.433747733
9.0.43
5.01
2.2022.12201
0.0.77
1.16.80
1.1
5.5
5.84
22.11.1
7.12.3
79.0.3945.10
2.2022.10204
3.16
4.6.1
1.2022.12202
4.4.4763
22.12.100
3.42.0
1.2022.12202
1.2022.12202
3.4
2.20.31
2.50.105
6.12
17.13.3
100.0.4896.77
4.2022.12400
5.50
6.0.220320
7.12.0
2.22.0
6.33.0
5.9.1
22.14
3.4.0
9.154

View File

@ -0,0 +1,19 @@
import requests
html_all_apps = requests.get("https://apps.apple.com/us/developer/google-llc/id281956209?see-all=i-phonei-pad-apps")
html_all_apps_split = html_all_apps.text.split("\"")
all_apps = []
output = open("apple_versions.txt", "w")
for snippet in html_all_apps_split:
if snippet.startswith("https://apps.apple.com/us/app/") and "\\" not in snippet and snippet not in all_apps:
all_apps.append(snippet)
for app_link in all_apps:
print("fetch " + app_link)
app_html = requests.get(app_link).text
app_version = app_html.split('version">Version ')[1].split("</p>")[0]
output.write(app_version + "\n")
output.close()