Skip to content

Instantly share code, notes, and snippets.

@bhavul
Created April 8, 2019 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhavul/d3dc2a6cd6bd2cfc85b66bcbc3a83380 to your computer and use it in GitHub Desktop.
Save bhavul/d3dc2a6cd6bd2cfc85b66bcbc3a83380 to your computer and use it in GitHub Desktop.
from wordnik import *
wordToFind = "eloquent"
WORDNIK_APIKEY = "df571d345a98541fd4089056ad12ada5715d7998e77ee5111"
wordnikApiUrl = 'http://api.wordnik.com/v4'
client = swagger.ApiClient(wordnikApiKey, wordnikApiUrl)
wordConnection = WordApi.WordApi(client)
definition = wordConnection.getDefinitions(word=wordToFind,sourceDictionaries='wiktionary')
print 'Definition : '+definition.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment