Created
October 26, 2015 10:46
-
-
Save msikma/ae25cda9330717600329 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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