Skip to content

Instantly share code, notes, and snippets.

@csessig86
Created March 15, 2012 20:30
Show Gist options
  • Save csessig86/2046704 to your computer and use it in GitHub Desktop.
Save csessig86/2046704 to your computer and use it in GitHub Desktop.
Timeline.py part 7
# We will adjust the width of all images to 300 pixels. Also, Python spits out the word 'None' if it doesn't find an image. Delete that.
image4 = re.sub(r'width="\d\d\d"', 'width="300"', image3)
image5 = image4.replace('None', "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment