• Stars
    star
    311
  • Rank 134,521 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Extract download URLs from OneDrive or SharePoint share links and push them to aria2, even on systems without a GUI.

简体中文

OneDriveShareLinkPushAria2

Extract download URLs from OneDrive or SharePoint share links and push them to aria2, even on systems without a GUI (such as Linux).

从OneDrive或SharePoint共享链接提取下载URL并将其推送到aria2,即使在无图形界面的系统中(如Linux)依然可以使用。

Dependent

requests==2.25.1

pyppeteer==0.2.5

Feature

At present, this program supports the following download methods:

  • xxx-my.sharepoint.com Download of share links
    • Downloading multiple files without password for shared links
    • Downloading multiple files with password for shared links
    • Download of files in nested folders
    • Download any file of your choice
    • Traversal view and download for multiple files (more than 30) of shared links
  • xxx.sharepoint.com Downloads with share links
  • xxx-my.sharepoint.cn Download of share links (theoretically supported)

Note: aria2 itself does not support HTTP POST download links, while onedrive folder package download is HTTP POST download links, so this program will not support onedrive folder package download

Output file list

input this command then you can get file list in list.txt

python main.py > list.txt

It maybe output gibberish in powershell, you can input this command before to fix

[System.Console]::OutputEncoding = [System.Text.Encoding]::UTF8

Without password for shared links

Take this download link as an example:

https://gitaccuacnz2-my.sharepoint.com/:f:/g/personal/mail_finderacg_com/EheQwACFhe9JuGUn4hlg9esBsKyk5jp9-Iz69kqzLLF5Xw?e=FG7SHh

At this time, you need to use the download code for no password link, that is, main.py. Open this file and you can see that there are some global variables:

If you want to download the second file, you need downloadNum="2"

If you want to download the second and third file, you need downloadNum="2-3"

If you want to download the second, third, fourth, seventh file, you need downloadNum="2-4,7"

and so on.

After modifying, make sure the target aria2 is on and execute python3 main.py

With password for shared links

Take this download link as an example:

https://jia666-my.sharepoint.com/:f:/g/personal/1025_xkx_me/EsqNMFlDoyZKt-RGcsI1F2EB6AiQMBIpQM4Ka247KkyOQw?e=oC1y7r

At this time, you need to use the download code for have password link, that is, havepassword.py. Open this file and you can see that there are some global variables (repeated without further ado):

  • OneDriveSharePwd: Password for the OneDrive link

Usage is similar to the above.

Note

Before you use it, clone the whole project with git clone https://github.com/gaowanliang/OneDriveShareLinkPushAria2.git to use it. havepassword.py depends on main.py, if you want to use the version that requires a password If you want to use a version that requires a password, you need to pip install pyppeteer

The basic functions of this program have been realized. For a long time, if the software is not unusable, it will not be maintained. If there is a running problem, please bring a download link when raising the issue. The bug type issue that does not provide a download link will not be solved.

More Repositories

1

DownloadBot

(Currently) 🤖 A distributed cross-platform Telegram Bot that can control your Aria2 server, control server files and also upload to OneDrive / Google Drive.
Go
799
star
2

NMSL

一个纯前端的抽象话转换器
HTML
422
star
3

LightUploader

A lightweight, universal cloud drive upload tool for all platforms
Go
275
star
4

web-video-thumbnailer

For a web video that can be downloaded in segments, it is possible to create an overview of the video by downloading only a small amount of binary data.
Python
28
star
5

MagicPassword

Need to generate a password? Try Gaowanliang Strong Password Generator. Just need a master password to generate secure passwords to keep your network safe.
HTML
19
star
6

googleTranslatorKusaMaker

谷歌翻译生草机
CSS
14
star
7

NetworkRepair

A small tool for repairing some websites that are not available for network reasons
Perl
10
star
8

CloudflareSpeedTestMobile

🌩 使用移动端测试 Cloudflare CDN 延迟和速度,获取最快 IP (IPv4+IPv6)!
Dart
9
star
9

geekchat

多房间的基于socket.io的聊天室
HTML
7
star
10

prompt-library

Vue
6
star
11

regex101-proxy

HTML
6
star
12

V2rayNCustomizePAC

Convenient customization of the domain name to be operated to the PAC file in V2rayN
C#
5
star
13

wylmtbfy

需要我帮你百度一下吗——Would you like me to baidu for you
CSS
5
star
14

Word-Dictation-and-Correction

A small program that allows dictation of words and dictation of mispronounced words for rewriting.
Dart
5
star
15

gaowanliang.github.io

高玩梁的个人博客
HTML
3
star
16

Privacy-Image-Watermark-Generator

Secure your private images with a full page watermark.
Vue
3
star
17

LaTeX2MathML

A tool to easily convert LaTeX to MathML
HTML
2
star
18

gopaste

Secure and private online pastebin based on golang
HTML
2
star
19

gitment-store

图床
CSS
1
star
20

Terminflow

A cross-platform SSH client that synchronizes connection information
1
star
21

yigedinglia

基于Python的成语接龙程序,可以自动接到一个顶俩
CSS
1
star
22

ZiYouBei

一个程序自由背遍天下题
JavaScript
1
star
23

Aria2_OneIndex

支持Debian
Shell
1
star
24

Qt-demo

This demo implements a C language registration / login server and a QT client
C++
1
star
25

md2CP

CSS
1
star
26

C51-Electronic-Organ

Analog electronic organ / music box system based on AT89C52 通过AT89C52单片机实现的模拟电子琴/八音盒系统
C
1
star