Created
March 15, 2012 20:30
-
-
Save csessig86/2046704 to your computer and use it in GitHub Desktop.
Timeline.py part 7
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
# 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