Giter Club home page Giter Club logo

onedrive-direct-link's Introduction

由于被黑客利用与传播病毒文件,站点永久关闭
Due to being used by hackers to spread virus files, the site is permanently closed


# The OneDrive Direct Download Link Helper

Get OneDrive direct download link by just changing the "1drv.ms" to "1drv.ws"
通过简单地改域名, 来获取OneDrive的直接下载链接。

Usage

  1. Get the share link, like this: https://1drv.ms/u/s!Aiw77soXua44hb4CEu6eSveUl0xUoA
  2. Change the domain 1drv.ms to 1drv.ws, I mean, just flip the m to w
    which becomes https://1drv.ws/u/s!Aiw77soXua44hb4CEu6eSveUl0xUoA
  3. This IS the direct link, you can paste it to browser and see.

btw, you can add ?txt at the end of url, to display text link, instead of a 301 redirect.
eg: https://1drv.ws/u/s!Aiw77soXua44hb4CEu6eSveUl0xUoA?txt

How it works

https://1drv.ms/t/s!Aiw11soXua11pxigLnclZsYIU_Rx
-- HTTP --> https://onedrive.live.com/redir?resid=...&authkey=!...&ithint=file%1ctxt
--MODIFY--> https://onedrive.live.com/download?resid=...!1111&authkey=!...&ithint=file%1ctxt
-- HTTP --> https://jlohlg.by.files.1drv.com/some-long-long-link/file.txt?download&psid=1

Tips

  • Play OneDrive video directly in local player (eg:PotPlayer), most player support "play from url"
  • dispaly as image <img src='https://1drv.ws/u/s!Aiw77soXua44hb4CEu6eSveUl0xUoA'>

Deploy Your Self

  1. Python 3.5+ is required.
  2. git clone https://github.com/aploium/OneDrive-Direct-Link
  3. cd OneDrive-Direct-Link
  4. pip3 install -r requirements.txt
  5. python3 app.py
  6. Now you got this services in your localhost.

warning: this code is simple and not fool-proof.

onedrive-direct-link's People

Contributors

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