Fshare Tool is a tool to transfer Fshare file to Google Drive, OneDrive using Fshare API.
- You need to have a VIP Fshare with daily bandwith available account to use this tool (to can download file with high speed).
- A VPS with high speed internet connection (to can upload file to Google Drive, OneDrive with high speed), and can have unlimited bandwith.
- Create API app for Fshare: go to this page. Click
Get App Key
button, then fill the form and clickSubmit
button. You will getApp Key
andApp 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 rungdrive
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 runrclone
command in terminal. After install, you need to configrclone
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
toconfig.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