Skip to main content

Export BUPT Library Records.

Project description

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) 

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

buptlibrecord-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

buptlibrecord-0.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file buptlibrecord-0.0.1.tar.gz.

File metadata

  • Download URL: buptlibrecord-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for buptlibrecord-0.0.1.tar.gz
Algorithm Hash digest
SHA256 77ab361f8df5f8c974acd48f488a022058a882079bd86ca258dfcfcd3e2cdfb4
MD5 fa6c494e672d6526a5000c325222dd4c
BLAKE2b-256 a2574b663e2ddebaff0a15334d02be82819231c97fbdb0c8b1daee5536faff21

See more details on using hashes here.

File details

Details for the file buptlibrecord-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: buptlibrecord-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for buptlibrecord-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c3a67d1072d5b872573933a537e62258c1b81eb77c107dcebeb0cd41f546ec1
MD5 c877c828f568779b89fd68fb66fa7208
BLAKE2b-256 b1ae7d16dd5d20ecdeee8746d8a50b6072dc73cad64d4e2b19b79ea08f4a8dfa

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