Skip to content

Instantly share code, notes, and snippets.

@freeeve
Last active October 21, 2021 01:28
Show Gist options
  • Save freeeve/65a6c080436cae0155fa842dd75557e6 to your computer and use it in GitHub Desktop.
Save freeeve/65a6c080436cae0155fa842dd75557e6 to your computer and use it in GitHub Desktop.
#!/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