GithubHelp home page GithubHelp logo

miraclehjt / node_pcsapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yangff/node_pcsapi

0.0 0.0 0.0 3.55 MB

Baidu Webdisk third party api .

JavaScript 93.23% Batchfile 1.84% Shell 0.25% C++ 4.68%

node_pcsapi's Introduction

pcsvideo

pcsvideo 是一个使用nodejs对百度网盘资源进行访问的小程序。

他直接解析百度网盘的API,而不是PCS的api,这样取回的文件地址不会包含access key,那么用途你懂的。

因为我不是很熟悉node.js的package制作,另一方面,jugglingdb 各种奇葩的bug,导致我对他的代码进行了一部分修改,所以……还是你懂的。。

server.js

server.js 是主程序支持

/get/key

请求指定md5的视频

以下两个api仅支持服务端访问

为了使用他们,请建立SSL目录,并在里面放置证书。 CA.crt server.key server.crt

/add/key 仅允许服务端访问 根据文件特征秒传文件 这里的文件特征请通过tookit/rapidid计算 /delete 仅仅在数据库中删除文件。 因为在pcs上删除文件要用到特殊的token,而这个token随着www发下,而且过期比较快,而维持token会消耗比较大的带宽资源,建议导出所有应该删除的文件后在本地删除。

admin.js

admin.js是管理百度帐号的工具。

具体命令node admin -h后,按照提示使用即可。

guard.js

guard.js 是维持百度cookie所使用的工具。直接启动即可。 (暂未完成)

config.json

config.json 是配置文件,格式是这样的:

{
    "deal" : 0,  // 刷新cookie的时间间隔,秒为单位,时间运行时会+-60 // 暂不支持
    // sql access data
    "sqltype" : "", // only allow postgresql now
    "host" : "",
    "username" : "",
    "password" : "",
    "port"     : "",
    "database" : "",
    "prefix"   : "",
    // service
    "ssl"      : false // 是否使用ssl(指针对get,而add和delete强制https+client auth)
}

node_pcsapi's People

Contributors

yangff 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.