众所周知,小说是 离线 与 娱乐 最好的结合,小说就适合在没网的地方欣赏
但是除了番茄小说(必须好评),没有网站愿意完全暴露小说内容,不是VIP就是网页都看不到(HBooker)
于是,我在Github找到了一个神秘的项目: 小爬虫
但是使用这个爬虫差点让我又褪了一层皮,太难搞了
准备软件
- Linux(Windows就是**)
- Python3
- virt-manager(KVM)安装android-x86 v7(不能再高了,实测)
安装刺猬猫APP
直接访问 http://www.hbooker.com/setting/download
我是真的服了,WAP网页端做的依托大便
记得开ARM转义层,参考 安装 Android x86 并开启 arm 兼容
获取Token
hiz@hiz-PC:~/Documents/HBooker$ adb connect 192.168.122.40
already connected to 192.168.122.40:5555
hiz@hiz-PC:~/Documents/HBooker$ adb shell su root cat /data/data/com.kuangxiangciweimao.novel/shared_prefs/com.kuangxiangciweimao.novel_preferences.xml
然后找XML中loginToken和user字段
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
...
{"entry_check":"0","internal_version":"2.9.312","is_set_young":"0","loginToken":"fffffffffffffffffffffffffffff","propInfo":{"rest_gift_hlb":"0","rest_hlb":"0","rest_month_blade":0,"rest_recommend":"0","rest_total_100":"0","rest_total_10000":"0","rest_total_100000":"0","rest_total_1688":"0","rest_total_5000":"0","rest_total_588":"0","rest_total_blade":0,"rest_yp":"0"},"readerInfo":{"account":"书客5085057","avatar_thumb_url":"","avatar_url":"","base_status":"1","book_age":1,"book_count":"0","book_fans_value":0,"category_prefer":[],"ctime":"2024-12-15 11:35:00","email":"","exp_lv":1,"exp_value":0,"followed_amount":"0","gender":1,"ip_home":"","is_author":0,"is_bind":0,"is_bind_huawei":0,"is_bind_qq":0,"is_bind_weixin":0,"is_following":0,"is_forbid":0,"is_uploader":0,"phone_num":"","reader_id":"22527154","reader_name":"书客5085057","used_decoration":[],"vip_lv":0,"vip_value":0},"userCode":"d2280d6554968cccc95f025c556932a1","vip":false}\</string>
...
\</map>
结束
python -m venv .
./bin/pip install python-magic pycryptodome rich ebooklib requests
./bin/python run.py
按照提示即可
本文由 zlh 创作,采用 知识共享署名4.0 国际许可协议进行许可。
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。