Giter VIP home page Giter VIP logo

checkbilibiliuploadstate's Introduction

检测B站审核状态,并进行数据分析

本python项目用于检测B站的审核状态

B站的审核状态没有找到相应的api,其审核状态是用vue写入的,无法直接通过request读取。

方便起见,用了selenium模块直接读取元素

此处我用的是chromedriver.exe,如果没有谷歌浏览器的,请到百度查找相应浏览器的webdriver,或者直接下载一个最新版的chrome浏览器

shift+右键打开powershell,并键入

pythonw upload.pyw 1>stdout.txt 2>stderr.txt

此时程序进入后台运行,并弹出Chrome浏览器界面,登录以后,就可以正常地开始读取B站审核状态了

程序根目录下会产生一个upload.txt,里面就存储了当前时间和当前审核状态

在使用过程中请勿关闭chromedriver.exe以及浏览器

shift+y右键打开powershell,并输入

python data_analysis.py

将画出当前bilibili各种状态出现的次数

程序默认每10分钟运行一次,如果想要修改,请修改upload.pyw中的第55行:

timer = threading.Timer(600, up.GetUploadStatusFromBiliBili)#600s定时运行

以及第57行

 time.sleep(590)#休眠590s

具体内容可见B站

<iframe src="//player.bilibili.com/player.html?aid=95553466&cid=163128842&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

或者:

checkbilibiliuploadstate's People

Contributors

dantemiwa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.