Skip to main content

集成编程猫的API

Project description

bcmapi

说明

集成编程猫的有关用户的API,便捷获取用户信息

更新日志

1.0.0基础功能

1.0.1紧急删除了1.0.0中泄露的cookie

教程

登录

from bcmapi import Account





# 实例化一个用户



user = Account(cookie='your_cookie')







# 获取用户信息



print(user.getnickname())



print(user.getid())



print(user.getusergold())



print(user.getrealname())



print(user.getrealsex())



print(user.getusername())



print(user.getusername())



print(user.getbirthday())



print(user.getdescription())



print(user.getphone())



print(user.getlevel())

获取其它用户信息

from bcmapi import OtherAccount







# 实例化一个用户



user = OtherAccount(id=123456)







# 获取用户信息



print(user.getid())



print(user.getnickname())



print(user.getavatarurl())



print(user.getdescription())



print(user.getlevel())



print(user.getworkshopname())



print(user.getworkshoplevel())



print(user.getviewtimes())



print(user.getfanstotal())



print(user.getcollectedtotal())



print(user.getcollecttimes())



print(user.getlikedtotal())



print(user.getattentiontotal())



print(user.getdoing())



print(user.getotherinfo('doing'))

获取其它工作室信息

from bcmapi import OtherWorkShop







# 实例化一个工作室



workshop = OtherWorkShop(id=123456)







# 获取工作室信息



print(workshop.getid())



print(workshop.getname())



print(workshop.getdescription())



print(workshop.getlevel())



print(workshop.getpreviewurl())



print(workshop.getcreatedtime())



print(workshop.getotherinfo('name'))

更新自己的工作室信息

from bcmapi import WorkShop







# 实例化一个工作室



workshop = WorkShop(cookie='your_cookie')







# 更新工作室信息



print(workshop.update_workshop(123456, name='new_name', preview_url='new_preview_url', description='new_description'))

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

bcmapi-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file bcmapi-1.0.0.tar.gz.

File metadata

  • Download URL: bcmapi-1.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for bcmapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7249cc048b59868967daf781cc38e33831e961b6e6b4302b8dcf26063d0e54a8
MD5 afaff2ea7c6aaf1e571d804dce70f8ef
BLAKE2b-256 050a1358b0009fd80b9776efa1c4520ae2f6c97c568eea026e970fda2f13a769

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