Skip to content

This is a downloader for sharepoint folder and files. Works on Windows/Linux

Notifications You must be signed in to change notification settings

alfablac/odrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odrive folder/file download

This is a downloader for sharepoint folder and files. Works on Windows/Linux.

Since authorization is given through the share URL, links must follow the format:

https://<dominio>:f:/g/personal/<caminho>/<id>?e=<id>

Requirements

python3 + requests module + selenium module

pip install -r requirements.txt

should be enough to run this. aria2c and chromedriver binaries are included in the root path.

Usage

usage: python3 odrive.py [-h] -u URL [-i] [-p PASSWORD] [-o OUTPUT]
odrive sharepoint file/folder downloader

required arguments:
  -u URL, --url URL  download url
optional arguments:
  -h, --help         
                        show this help message and exit
  -i, --interactive  
                        interactive mode (select which items to download)
  -p PASSWORD, --password PASSWORD
                        given folder password if it's needed
  -o OUTPUT, --output OUTPUT
                        output folder. Should work for either relative or absolute paths (Win/*nix)

To-do

  • extract bit.ly
  • auto cookies export
  • recursive folder download (kinda. it works for one level of depth)
  • add support for folder locked with password
  • dont add file to download list if it's already in the folder ("-i" option might covers that)

About

This is a downloader for sharepoint folder and files. Works on Windows/Linux

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages