Skip to main content

用Python实现的小黑盒客户端

Project description

PYXIAOHEIHE

Codacy Badge PyPI License

一个使用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)]

部分API需要真实的账号信息才可用 有关heybox_id, imei, pkey的获取方法可以参考XHH_AUTO中的教程 或者使用HeyBoxClient._login()方法自动获取(会顶掉原客户端的登陆)

Project details


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.9.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

pyxiaoheihe-1.0.9-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file pyxiaoheihe-1.0.9.tar.gz.

File metadata

  • Download URL: pyxiaoheihe-1.0.9.tar.gz
  • Upload date:
  • Size: 23.4 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

Hashes for pyxiaoheihe-1.0.9.tar.gz
Algorithm Hash digest
SHA256 50ba379ecb18549a9105a390dd24938d93cbf0b8ff5a865c515d008dd696f27b
MD5 c20609bd2152d5c2ff411e5f6ee1d390
BLAKE2b-256 e8dc8bb2b25267445d26afd04b597de590d314a450109b13b913bd65ffc7c2f3

See more details on using hashes here.

File details

Details for the file pyxiaoheihe-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: pyxiaoheihe-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 40.2 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

Hashes for pyxiaoheihe-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6dfda2c6dd499cea09be453e7cf44e346b7bd01f7023c6ec24dbf1e388c3b8f4
MD5 55d3ebe7f8a2a6b7e46c7fa1a69d5165
BLAKE2b-256 6f0f05eb971da654ad84d3668ab8ddcccd1af6d71f2e3f20618190b5e22bcf6d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page