All Projects → gaowanliang → OneDriveShareLinkPushAria2

gaowanliang / OneDriveShareLinkPushAria2

Licence: Apache-2.0 license
Extract download URLs from OneDrive or SharePoint share links and push them to aria2, even on systems without a GUI.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to OneDriveShareLinkPushAria2

MIRROR-HUNTER
Who are we? We are the Hunters of all Torrent in this world.🗡️.Fork from SlamDevs
Stars: ✭ 86 (-66.41%)
Mutual labels:  download, aria2
Negibox
All in one downloader 全能下载器
Stars: ✭ 335 (+30.86%)
Mutual labels:  download, aria2
Photon
A lightweight multi-threaded downloader based on aria2.
Stars: ✭ 3,026 (+1082.03%)
Mutual labels:  download, aria2
Aria2.conf
Aria2 配置文件 | OneDrive & Google Drvive 离线下载 | 百度网盘转存
Stars: ✭ 1,321 (+416.02%)
Mutual labels:  onedrive, aria2
Aria2 Pro Docker
Aria2 Pro | A perfect Aria2 Docker image | 更好用的 Aria2 Docker 容器镜像
Stars: ✭ 802 (+213.28%)
Mutual labels:  download, aria2
Safari2aria
safari extension for use aria2 to replace safari default download
Stars: ✭ 563 (+119.92%)
Mutual labels:  download, aria2
Photon
A lightweight multi-threaded downloader based on aria2.
Stars: ✭ 3,030 (+1083.59%)
Mutual labels:  download, aria2
Ariang Native
A better aria2 desktop frontend than AriaNg, containing all features of AriaNg and more features for desktop.
Stars: ✭ 1,176 (+359.38%)
Mutual labels:  download, aria2
Motrix
A full-featured download manager.
Stars: ✭ 29,357 (+11367.58%)
Mutual labels:  download, aria2
Maria
a macOS native app/widget for aria2 download tool.
Stars: ✭ 618 (+141.41%)
Mutual labels:  download, aria2
Ariang
AriaNg, a modern web frontend making aria2 easier to use.
Stars: ✭ 8,339 (+3157.42%)
Mutual labels:  download, aria2
Aria2.sh
Aria2 一键安装管理脚本 增强版
Stars: ✭ 1,276 (+398.44%)
Mutual labels:  download, aria2
crunchyroll-dl
A fast, modern, and beautiful Crunchyroll downloader.
Stars: ✭ 111 (-56.64%)
Mutual labels:  download
fastdownload
Easily download, verify, and extract archives
Stars: ✭ 35 (-86.33%)
Mutual labels:  download
Outlook-Add-in-SSO
[MOVED] The sample implements an Outlook add-in that uses Office's SSO system to get access to Microsoft Graph APIs and adds buttons to the Outlook ribbon.
Stars: ✭ 48 (-81.25%)
Mutual labels:  onedrive
Spotifarr
Spotifarr
Stars: ✭ 35 (-86.33%)
Mutual labels:  download
video-to-markdown
How to embed a video in markdown? Here the answer. Add videos to your markdown files easier.
Stars: ✭ 159 (-37.89%)
Mutual labels:  onedrive
nrk api
API to interact with NRK, also includes a cli.
Stars: ✭ 22 (-91.41%)
Mutual labels:  download
download
Dateidownloads von Files aus dem Medienpool über PHP oder X-SendFile
Stars: ✭ 30 (-88.28%)
Mutual labels:  download
Floatplane-Downloader
Project for automatically organizing and downloading Floatplane videos for plex.
Stars: ✭ 94 (-63.28%)
Mutual labels:  download

简体中文

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].