Last active
October 21, 2021 01:28
-
-
Save freeeve/65a6c080436cae0155fa842dd75557e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import requests | |
latest_json = requests.get('https://launchermeta.mojang.com/mc/game/version_manifest.json').json().get('versions')[0].get('url') | |
latest_server_url = requests.get(latest_json).json().get('downloads').get('server').get('url') | |
print(latest_server_url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment