Skip to content

Instantly share code, notes, and snippets.

@wfarr
Created November 13, 2008 04:21
Show Gist options
  • Select an option

  • Save wfarr/24359 to your computer and use it in GitHub Desktop.

Select an option

Save wfarr/24359 to your computer and use it in GitHub Desktop.
#!/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