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 Keybutton, then fill the form and clickSubmitbutton. You will getApp KeyandApp Secretfor 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 rungdrivecommand in terminal. -
If you want to upload to OneDrive, install
rclone, you can follow home page of rclone to install. Make sure you can runrclonecommand in terminal. After install, you need to configrcloneto 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.exampletoconfig.iniand edit it.cp config.ini.example config.ini vim config.ini
You must config
passwordof your Fshare Account, andapp_agent,app_keyyour received from Fshare via mail. Morever, you want configDriveblock to can use upload function: If use Google Drive, setgdriveto1and configfolder_id. If use OneDrive, setonedriveto1, configrclone_remote_nameandonedrive_folder_path.
All done, before use upload, you must login to Fshare API by run this command:
python3 login_fshare.pyIf 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