Skip to content

Instantly share code, notes, and snippets.

@freeeve
Last active October 21, 2021 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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