Created
November 13, 2008 04:21
-
-
Save wfarr/24359 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
| #!/bin/env python | |
| import re | |
| words = [] | |
| file = open('/Users/wfarr/myfile', 'r') | |
| for line in file: | |
| for w in line.split(' '): | |
| words.append(w.strip) | |
| for word in words: | |
| new = word.lower().translate(None, '\'') | |
| print("http://www.{0}.com/\nOriginally: {1}".format(new, word)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment