Random word generator- Python

Reading a local word list If you’re doing this repeatedly, I would download it locally and pull from the local file. *nix users can use /usr/share/dict/words. Example: word_file = “/usr/share/dict/words” WORDS = open(word_file).read().splitlines() Pulling from a remote dictionary If you want to pull from a remote dictionary, here are a couple of ways. The requests … Read more

Free word list for use programmatically? [closed]

Options: Look for /usr/share/dict/words on your common or garden variety Unix install. http://www.ibiblio.org/webster/ http://wordlist.sourceforge.net/ http://svnweb.freebsd.org/csrg/share/dict/ (click the ‘revision’ tag of the file ‘words’) #4 is the one I used for my own Python experiment into word games, and it worked nicely. For bonus points, here’s something to get you started on your word program: import … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)