TrueCaller电话号码搜索的非官方API
trunofficial的Python项目详细描述
TrueCaller电话号码搜索的非官方API。
安装
pip install trunofficial
或者如果你喜欢生活在流血的边缘:
python setup.py install
命令行用法
usage: trunofficial [-h] [-c COUNTRYCODE] [NUMBER [NUMBER ...]] Unofficial API to the Truecaller phone number search. positional arguments: NUMBER phone numbers to lookup on Truecaller optional arguments: -h, --help show this help message and exit -c COUNTRYCODE, --countrycode COUNTRYCODE prioritize search by country
示例:
$ trunofficial 2024561111
库使用
import trunofficial owner = trunofficial.search('2024561111') print(owner.name) mobile = owner.phone print(mobile.number) print(mobile.countrycode) print(mobile.carrier) house = owner.address print(house.city) print(house.timezone)
有关更多示例,请检查examples directory或阅读 全部 Documentation。
运行测试
python -m pytest test
免责声明
这种访问TrueCaller数据库的方法可能会停止任何 瞬间。使用它的风险由你自己承担。
许可证
The MIT License