SharePoint Download List Generator
This project can generate Aria2 batch download list for SharePoint Links with folder structure.
Instructions
Aria2 is recommended, download from Aria2/releases.
How to get the Real Path:
- Open the SharePoint link in web browser.
- Open DevTools -> Network tab and then reload the page.
- Filter out 'RenderListDataAsStream' XHR request(s).
- Copy the Real Path from '@a1' or '@listUrl' query parameter (without quotes).
(eg. /personal/aaaa_t_cccc_cn/Documents/)
- Concat the host and the path.
(eg. https://xxxx-my.sharepoint.com/personal/aaaa_t_cccc_cn/Documents/)
How to get FedAuth cookie:
- Open the SharePoint link in web browser.
- Open DevTools -> Network tab and then reload the page.
- Locate the very first request after reloading or requests to your SharePoint domain.
- Find either 'Cookie: FedAuth=' or 'Set-Cookie: FedAuth='.
- Copy the text after 'Auth=' till the first semicolon(;).
Enjoy!
Usage
Python3 is required to run the script.
# Following command might be pip3 or python3 depends on system.
pip install -r requirements.txt
python sharepoint_gen_aria2_download_list.py
# Follow the instuctions.