Skip to content

Instantly share code, notes, and snippets.

@graingerkid
Last active August 29, 2015 14:19
Show Gist options
  • Save graingerkid/046b428105a5ea9b8eca to your computer and use it in GitHub Desktop.
Save graingerkid/046b428105a5ea9b8eca to your computer and use it in GitHub Desktop.
Google Cache Date Regex
import re
data = source_code_of_cached_page
google_cache_data = re.findall(r"""[A-Z][a-z]{2}\s[0-9]+,\s[0-9]{4}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]{3}""", data) or re.findall(r"""[0-9]+\s[A-Z][a-z]{2},\s[0-9]{4}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]{3}""", data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment