KartikTalwar / Duolingo

Unofficial Duolingo API Written in Python
MIT License
822 stars 129 forks source link

get_known_words() #7

Closed asifzubair closed 9 years ago

asifzubair commented 10 years ago
a = duolingo.Duolingo('xyz')
a.get_settings()
{'deactivated': False, 'notify_comment': True, 'is_following': False, 'is_follower_by': False}
a.get_known_words('fr')
Traceback (most recent call last):
File "", line 1, in 
File "build/bdist.macosx-10.9-x86_64/egg/duolingo/init.py", line 127, in get_known_words
for word in self.user_data.language_data[lang]['skills']:
KeyError: 'fr'

I tried it just like in the documentation. Of course, no arguments leads to this :

a.get_known_words()
Traceback (most recent call last):
File "", line 1, in 
TypeError: get_known_words() takes exactly 2 arguments (1 given)

Could you help me out ?

a.

KartikTalwar commented 10 years ago

Continuing #4, your profile data is not being give out by duolingo.com

asifzubair commented 10 years ago

wow, i feel special. would you know why ?

KartikTalwar commented 10 years ago

No idea

asifzubair commented 10 years ago

K. I'll see what I can do. Thanks for the help!

a.