Skip to content

Instantly share code, notes, and snippets.

@csessig86
Created March 15, 2012 20:38
Show Gist options
  • Save csessig86/2046741 to your computer and use it in GitHub Desktop.
Save csessig86/2046741 to your computer and use it in GitHub Desktop.
Timeline.py part 8
# If the story has been updated recently, an em class tag will appear on the page showing the time but not the date. We will delete the class and replace it with today's date. We can change the date in the CSV if we need to.
date8 = date7.replace('[<em class="item-updated badge">Updated:', str(now.strftime("%Y-%m-%d %H:%M")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment