コード例 #1
0
 def bvGot(self,text):
     self.lineEdit.clear()
     video=b.Bilibili(setting=b.Var.setting,bv=text)
     content=video.str()
     if video.isYingXiaoHao():
         content+="疑似低质量视频!"
     else:
         content+="不是低质量视频!"
     self.isYingXiaoHao_Dis.setText(content)
コード例 #2
0
def main():
    while True:
        i = input("请输入BV号.quit退出.")
        if i == "quit":
            break
        video=b.Bilibili(b.Var.setting,i)
        content = str(video)
        if video.isYingXiaoHao():
            content += "疑似低质量视频!"
        else:
            content += "不是低质量视频!"
        print(content)
コード例 #3
0
import bilibili

if '__main__' == __name__:
    build = bilibili.Bilibili()
    build.run()
コード例 #4
0
ファイル: manga_sign.py プロジェクト: uuusmi/Bilibili-Manga
import requests
import bilibili
import re
import time
import os

msg = ""

serverJ = os.environ['push_key']
# 尝试登陆
b = bilibili.Bilibili()
b.login(username=os.environ['account'], password=os.environ['password'])

# 获取 Cookie
cookie_str = ""
cookies = b.get_cookies()
for cookie in cookies:
    cookie_str += cookie + "=" + cookies[cookie] + "; "

headers_with_cookie = {
    'User-Agent':
    "Mozilla/5.0 BiliDroid/6.4.0 ([email protected]) os/android model/M1903F11I mobi_app/android build/6040500 channel/bili innerVer/6040500 osVer/9.0.0 network/2",
    'Cookie': cookie_str
}

print("哔哩哔哩漫画开始签到 start>>>")
msg = msg + "哔哩哔哩漫画开始签到: \n"

r = requests.post(
    "https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn",
    verify=False,
コード例 #5
0
from windows import run as windowsrun
from consolev import main as consolemain
import bilibili as b
import os
import sys
if __name__ == '__main__':
    argv = sys.argv
    if argv[1] == "--windows":
        windowsrun()
    elif argv[1] == "--console":
        consolemain()
    elif argv[1] == "--download":
        os.system(
            "you-get --format==%s %s" %
            (b.Var.setting.format, b.Bilibili(b.Var.setting, argv[2]).link))