tuenpy, tuenti Python API
Abstract
tuenpy is a simplest Python API for spanish social network tuenti.com. Note: This software is under hard development.
Dependencies
- Python mechanize. Available in pypi Python repository.
- Python libxml2dom. Available in pypi Python repository.
Requirements
In order to tuenpy works properly, the tuenti mobile interface have to be enabled. You can visit m.tuenti.com and then login.
Instalation
Copy tuenpy.py in your project root o get it through Subversion:
svn co http://tuenpy.googlecode.com/svn/trunk/tuenpy.py
Or download trunk version from:
http://tuenpy.googlecode.com/svn/trunk/tuenpy.py
Usage
>>> from tuenpy import API
>>> email = 'my_tuenti_email'
>>> password = 'my_tuenti_password'
>>> tuenti = API(email=email, password=password)
>>> tuenti.Profile
<tuenpy.Profile object at 0x83e3e0c>
>>> tuenti.Profile.status = "testing tuenpy"
>>> tuenti.Profile.status
u'testing tuenpy'
>>> tuenti.Profile.status = None
>>> tuenti.Profile.status
>>> tuenti.Comments.latest(2)
[{'friend_id': u'xxxxxx',
'friend_name': u'John Doe',
'text': u'Hi, you.',
'time': u'3 horas'},
{'friend_id': u'yyyyy',
'friend_name': u'James Doe',
'text': u'Hey, dude.',
'time': u'3 horas'}]
>>> tuenti.Friends.get(0).nick
u'John Doe'