Skip to content

Instantly share code, notes, and snippets.

@msikma
Created October 26, 2015 10:46
Show Gist options
  • Save msikma/ae25cda9330717600329 to your computer and use it in GitHub Desktop.
Save msikma/ae25cda9330717600329 to your computer and use it in GitHub Desktop.
def latest_jmdict_timestamp():
'''
Check the timestamp of the latest JMDict file.
'''
request = urllib.request.Request(JMDICT_URL)
response = urllib.request.urlopen(request)
return response.headers['last-modified']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment