word_site = "http://www.instructables.com/files/orig/FLU/YE8L/H82UHPR8/FLUYE8LH82UHPR8.txt" response = urllib2.urlopen(word_site) txt = response.read() WORDS = txt.splitlines() randomword=(random.choice(WORDS))