Closed Puhalenthi closed 3 years ago
This is happening to me too.
Same here
The Api is rejecting requests with the current key. Response: <Response [429]> Result: {'message': 'API rate limit exceeded'}
ya recently I haven't been able to generate any words
Guys, forget about this. The owner of random-word didn't update this for like 2 years. Just use https://raw.githubusercontent.com/sindresorhus/mnemonic-words/master/words.json to get random word.
import json
import random
import urllib.request
url = urllib.request.urlopen("https://raw.githubusercontent.com/sindresorhus/mnemonic-words/master/words.json")
words = json.loads(url.read())
random_word = random.choice(words)
Thanks for the help!
working in 2020
import json
import random
import requests
response = requests.get("http://raw.githubusercontent.com/sindresorhus/mnemonic-words/master/words.json")
data = response.json()
random_word = random.choice(data)
print(random_word)
same
Same here. The strange thing is that it worked fine a couple of days ago, but today it just stopped working at all:
Exception: Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues
Thanks for reporting will update the package today, duplicate of https://github.com/vaibhavsingh97/random-word/issues/44
The get_random_word() function is outputting the message: """Exception: Error occurred, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues" It is not letting me create a random word. After multiple times of using the functions, it is printing errors
I was expecting it to return a random word without any errors.
OS- Windows 10 Python 3.8