comwrg / bilibiliupload

This project is not maintained anymore.
MIT License
140 stars 35 forks source link

有没有demo #18

Closed ZhangMingZhao1 closed 5 years ago

sqy941013 commented 5 years ago

这个是我上传的一个测试可以参考一下

# -*- coding:utf-8 -*-
from bilibiliupload import *

b = Bilibili()

login_status = b.login('user@qq.com', 'password')
print("Login:", login_status)

videoPart = VideoPart('153.mp4', 'this is 153 desc')

tags = {u"123", u"Shroud", u"Beaulo"}

b.upload(parts=videoPart, title='153 title', tid=65, tag=tags, desc='Uploaded from 23333',
         source='http://www.youtube.com', cover=b.cover_up('153.jpg'))