Skip to main content

刺猬猫/欢乐书客客户端API实现.

Project description

这是一个刺猬猫/欢乐书客API的简单实现,正在绝赞更新中

本项目从另一项目 HbookerAppNovelDownloader 有所借鉴

本项目一切开发旨在学习,请勿用于非法用途

  • 本项目仅供学习和娱乐用途使用
  • 本项目不会支持任何和钱相关的协议
  • 本项目不会支持任何涉及账户安全的操作
  • 请勿借助本项目进行刷票、伪造数据等损害社区公平的行为
  • 其他任何衍生软件行为与本项目无关

目前实现的功能

  1. 登录(所以猫客不登陆到底能干什么
  2. 获取书架列表
  3. 从书架获取书籍列表
  4. 获取书籍简单信息

所以这玩意现在就只能用来做做数据分析,想干别的的就先别想了

TODO

  1. 建立用户类,完成关注,取关等基本操作
  2. 完善书架列表操作,如新增、移除书架
  3. 完善书架操作,如移动书籍、收藏、移出等
  4. 支持获取章节基本信息(不含正文内容)
  5. 基本的数据分析支持

start

通过pypi安装

pip install hbookerAPI

从仓库安装

将仓库clone到本地,把hbookerAPI文件夹拷贝到你的工作目录下

示例使用

import hbookerAPI

# 初次登陆
session = hbookerAPI.Session()
session.login('你的账号', '你的密码')

# 可持久化保存session.commonUserInfo中的loginToken和account到本地
# 之后登录可直接
session = hbookerAPI.Session(loginToken, account)

bookShelves = session.getBookShelfList()
shelf = session.getBookShelf(bookShelves[0]['shelf_id'])

print(shelf.books)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hbookerAPI-0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hbookerAPI-0.1-py3.8.egg (9.0 kB view details)

Uploaded Egg

hbookerAPI-0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file hbookerAPI-0.1.tar.gz.

File metadata

  • Download URL: hbookerAPI-0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for hbookerAPI-0.1.tar.gz
Algorithm Hash digest
SHA256 8f3c308838b06e5de0a46efdf5ae9d8e60bc4880f2584237153272d1e022e313
MD5 0ad149d2f40cc24e3273bd1120572484
BLAKE2b-256 35eb9c08dd4cac9efe227da5155fd64eb29b6edad5f5e4e72be3316af59db744

See more details on using hashes here.

File details

Details for the file hbookerAPI-0.1-py3.8.egg.

File metadata

  • Download URL: hbookerAPI-0.1-py3.8.egg
  • Upload date:
  • Size: 9.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for hbookerAPI-0.1-py3.8.egg
Algorithm Hash digest
SHA256 723f0b7b44faf0f48a6508d8a1d3f06e0ec7ce944bd691644047ecb7d1e7fdf4
MD5 e77cec48414aad9229a5eec9e055f6bd
BLAKE2b-256 d85d32700257c63dcd698f3c75ef3ee2ff974c5add5ba2802a4e974bd6ee018e

See more details on using hashes here.

File details

Details for the file hbookerAPI-0.1-py3-none-any.whl.

File metadata

  • Download URL: hbookerAPI-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for hbookerAPI-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4881912cf780965d7fde8fd379254faaf4da0c8b2519b53b4c17e65949a04a77
MD5 eb234618361e6fbc336d5a72a68c0994
BLAKE2b-256 7bc20d6f6706bfcd589d4c9c5e432fc1be7394cbcff7e85008d4e232537d3ed0

See more details on using hashes here.

Supported by

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