Fshare Tool is a tool to transfer Fshare file to Google Drive, OneDrive using Fshare API.
Get App Key
button, then fill the form and click Submit
button. You will get App Key
and App Secret
for your app via email.Bellow instruction is for Ubuntu 20.04 and any Debian distro, but you can install on other Linux distro with some changes.
Update and install Python 3 (>= 3.6
)
sudo apt update
sudo apt install python3 python3-pip git
If you want to upload to Google Drive, install gdrive
, you can follow home page of gdrive to install. Make sure you can run gdrive
command in terminal.
If you want to upload to OneDrive, install rclone
, you can follow home page of rclone to install. Make sure you can run rclone
command in terminal. After install, you need to config rclone
to use OneDrive, you can follow this guide.
Clone this repo and install dependencies
git clone https://github.com/lvdat/fshare_tool
cd fshare_tool
pip3 install -r requirements.txt
Make a copy of config.ini.example
to config.ini
and edit it.
cp config.ini.example config.ini
vim config.ini
You must config
password
of your Fshare Account, andapp_agent
,app_key
your received from Fshare via mail. Morever, you want configDrive
block to can use upload function: If use Google Drive, setgdrive
to1
and configfolder_id
. If use OneDrive, setonedrive
to1
, configrclone_remote_name
andonedrive_folder_path
.
All done, before use upload, you must login to Fshare API by run this command:
python3 login_fshare.py
If output is Done!
, you are logged in successfully.
To upload file from Fshare link to Drive, use:
python3 f_dl.py <url of Fshare file> [Password of link (opitional)]
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change