用Python实现的小黑盒客户端
Project description
PYXIAOHEIHE
一个使用requests库完成的小黑盒客户端, 覆盖了30%左右的客户端功能.
例程: XHH_AUTO
安装
>$ pip install pyxiaoheihe
使用
from pyxiaoheihe import HeyBoxClient
account={'heybox_id': 1234, 'imei': '0000', 'pkey': 'TEST'}"
hbxcfg= {'channel': 'heybox_yingyongbao', 'os_type': 1, 'os_version': '10', 'sleep_interval': 1.0, 'auto_report': True}
debug=False
hbc = HeyBoxClient(account,hbxcfg,debug)
# 获取首页新闻
rs = hbc.get_news(5)
print(rs)
# [(44856495, '8月28日20:00,《原神》公测前瞻直播即将开启', '旅行者们大家好~又到了预告时间。……', 21569078),
# (44837161, 'steam商店限时免费领取《Destin...Fate/命运之幽》', '领取链接:《Destiny or Fa……', 7386593),
# (44855908, '剧场版《Fate[HF]》最终章票房突破...藤惠生日联动活动公开', '剧场版《Fate[HF]》……', 20495862),
# (44741441, '关于盒友杂谈的杂谈', '我已经不记得使用小黑盒多久了,从签到天数...兴趣的小标题……', 16243337),
# (44856136, '[Wallpaper Engine][东...ect]视频壁纸推荐', '个人觉得比较好康的视频壁纸,名字……', 18852508)]
有关
heybox_id
,imei
,pkey
的获取方法可以参考XHH_AUTO中的教程, 或者使用HeyBoxClient._login()
方法自动获取(会顶掉原来的登陆).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyxiaoheihe-1.0.5.tar.gz
(23.1 kB
view details)
Built Distribution
File details
Details for the file pyxiaoheihe-1.0.5.tar.gz
.
File metadata
- Download URL: pyxiaoheihe-1.0.5.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ab331ffc28a26275103e999baa45c6914d7770df926d85a82e53d8ce37308a |
|
MD5 | d3234850027e33676a06bb251b912625 |
|
BLAKE2b-256 | 8ef534efed6fa391c69408494cf39f2b51f89baca23dae11187c5caabb089ee6 |
File details
Details for the file pyxiaoheihe-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: pyxiaoheihe-1.0.5-py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6023c4cbaf96d3994964c768db21ba47a8b9387288a1e5d1cc91e802c0865965 |
|
MD5 | 67241664b26059d3684d5c3800e47e99 |
|
BLAKE2b-256 | 0db1eb2046b1f77282f599d98bf172e4efc5ac2de8e28de7d71e8f6df638836c |