Tinder API的轻量级包装。
shiver_me_tinders的Python项目详细描述
一个轻量级包装器,用于包装tinder未记录的api。
要求
- python 2.6+(推荐2.7或3.4)
- pip(对于某些安装方法)
- git(对于某些安装方法)
安装
如果您使用的是Mac OS X或Linux,则以下两个命令之一可能对您有效:
安装
通过pypi使用pip
pip install shiver_me_tinders
通过github使用pip
pip install git+git://github.com/NFicano/shiver-me-tinders.git#egg=shiver_me_tinders
添加到requirements.txt文件(之后运行pip install -r requirements.txt)
git+ssh://github.com/NFicano/shiver-me-tinders.git#egg=shiver_me_tinders
通过git手动操作
git clone git://github.com/NFicano/shiver-me-tinders.git shiver-me-tinders
cd shiver-me-tinders
python setup.py install
用法示例
fromshiver_me_tinderimportTindertinder=Tinder(fb_token='xxx',fb_id=1001,lat=40.0,lon=-70.0)# Or initialize it with a yaml file (see included config.yaml.sample).tinder=Tinder.config_from_file('/path/to/file/config.yaml')matches=Tinder.get_matches()formatchinmatches:# Show users' name + photos.printmatch.name,match.photos# Now tip your hat at them...tinder.like(match)