Skip to main content

集成编程猫的API

Project description

bcmapi

作者

阿兹卡班毕业生

阿兹卡班毕业生

说明

集成编程猫的API,用简单的代码,实现编程猫和python连接!

更新日志

1.0.1md文档更新

1.0.0基础功能

教程

登录

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.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: bcmapi-1.0.1.tar.gz
  • Upload date:
  • Size: 2.5 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.1.tar.gz
Algorithm Hash digest
SHA256 bcbe413e3d44ec83e313270270621482a70c51176cc11dc965aae5be7df7df09
MD5 7bbfd9b1adee74a435b5cba6f4408bdc
BLAKE2b-256 25c771a93579385eafa79c6b15005316d03d26d8ad4ae950e25902cc29b665a7

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