Giter Site home page Giter Site logo

kang000feng / baiduyun_simple Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brickgao/baiduyun_simple

0.0 2.0 0.0 3.96 MB

[Deprecated] A web service to decode the share link from baidu yun

Home Page: http://easydown.duapp.com/

JavaScript 41.06% HTML 58.94%

baiduyun_simple's Introduction

Baiduyun Simple Build Status

A web service written by node.js to decode the share link from baidu yun.

The project has been build on BAE, you can visit http://easydown.duapp.com/ to have a test.

Get Started

Get Baiduyun Simple

  • Download the lastest release or clone the repo: [email protected]:brickgao/Baiduyun_Simple.git

Get Node.js

Get modules

  • use command npm install to get all the dependencies.

Then you can use command node app.js and enjoy it ~!

How to use

There is two simple way to use it. :)

###Make a Get method to get json

You can make a get method to /req include uk and shareid in the share link. Just like request though baidu API.

TIP: the expire time of the link is not very long, you should request again when you use.

Request Header:

{
  "shareid": // the shareid in the share link.
  "uk": // the uk in the share link.
}

For Example,

If there is a link:

http://yun.baidu.com/share/link?shareid=198923&uk=4281611514

There is a json you get:

{
  "shareid": "198923",
  "uk": "4281611514",
  "error": false,
  "url": "http://d.pcs.baidu.com/file/47c00304b872a8ec6b07bda4867f005c?fid=4281611514-250528-2444335697&time=1380002913&sign=FDTAR-DCb740ccc5511e5e8fedcff06b081203-qQKjWvLyzmmKneKyFxhaCvOU4nM%3D&rt=sh&expires=8h&r=976394124&sh=1"
}

###Use web app

There is a form in web app.

You can enter the url in the from and pos, and then you will get the link that is decoded.

License

MIT

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.