Skip to main content

BUPT Library Record Backup

用于导出个人北邮图书馆图书借阅记录。跨平台,但仅支持 Python 3。

需要输入使用学工号和密码登录北邮统一身份认证后的 Cookie中的 JSESSIONID,然后程序会自动导出全部的图书借阅记录并保存到文件,将会生成 3 个文件,包含原始数据的 json 格式文件,借阅过的图书列表,借阅日志(包含借阅,续借和还书三种操作)

如何获取 JSESSIONID

  1. 登录北邮统一身份认证 如网址 my.bupt.edu.cn

  2. 按 F12 打开开发者工具

  3. 在 FireFox 浏览器点击存储(Store)选项卡,Chrome 或 Edge 浏览器点击应用选项卡,再点击展开 Cookie

  4. 查看Cookie中 JSESSIONID 的值

Firefox: image.png

Edge / Chrome:

image.png

安装

直接使用 pip 安装

pip install buptlibrecord

使用

登录 buptlibrecord JSESSIONID

在 python 中调用

import buptlibrecord

book_info_list, totalPage, total_count = buptlibrecord.get_all_record_list(JSESSIONID) 

Release files for buptlibrecord 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for buptlibrecord 0.0.1
File Size Uploaded
buptlibrecord-0.0.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for buptlibrecord 0.0.1
File Interpreter ABI Platform
buptlibrecord-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / buptlibrecord-0.0.1.tar.gz

Download URL buptlibrecord-0.0.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
77ab361f8df5f8c974acd48f488a022058a882079bd86ca258dfcfcd3e2cdfb4
BLAKE2b-256 checksum
How to use checksums
a2574b663e2ddebaff0a15334d02be82819231c97fbdb0c8b1daee5536faff21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

Release files / buptlibrecord-0.0.1-py3-none-any.whl

Download URL buptlibrecord-0.0.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c3a67d1072d5b872573933a537e62258c1b81eb77c107dcebeb0cd41f546ec1
BLAKE2b-256 checksum
How to use checksums
b1ae7d16dd5d20ecdeee8746d8a50b6072dc73cad64d4e2b19b79ea08f4a8dfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page