2024-09-21 16:18:48 +02:00
2024-08-27 18:31:24 +02:00
2024-08-27 17:43:57 +02:00
2024-08-27 18:31:24 +02:00
2024-08-27 12:38:17 +02:00
2024-08-16 17:25:47 +02:00
2024-08-27 17:43:57 +02:00

GoFileCLI :

Upload or download a file to GoFile.

Install :

  • Linux/MacOS :
curl -fsSL https://raw.githubusercontent.com/NohamR/GoFileCLI/main/scripts/install.sh | sudo bash
  • Windows : Grab latest release from releases

  • Build on your own system :

git clone https://github.com/NohamR/GoFileCLI.git
apt install ccache patchelf
pip install nuitka
pip install -r requirements.txt
python -m nuitka --onefile --assume-yes-for-downloads --output-dir=dist --static-libpython=no gofilecli.py 
# dist/gofilecli.bin

Set env variables :

Get API token from https://gofile.io/myProfile. Copy folderId from a folder you own.

export GOPLOAD_TOKEN="XXXXXXX"
export GOPLOAD_PRIVATE_PARENT_ID="UUID"
export GOPLOAD_ACCOUNT_ID="UUID"
  • Windows :
setx GOPLOAD_TOKEN "XXXXXXX"
setx GOPLOAD_PRIVATE_PARENT_ID "UUID"
setx GOPLOAD_ACCOUNT_ID "UUID"

(Reluch Command Prompt to take effect)

Usage :

gofilecli -i 'file.txt' # to upload a file
gofilecli -f folder/ # to upload a folder
gofilecli -s # to get stats of your account
gofilecli -d https://gofile.io/d/XXXXX # to download a folder

To do :

  • KeyboardInterrupt + Lost connexion
  • error-rateLimit
  • env via CLI
  • finish README.md
  • chiffrer & dechiffrer uploads
Description
A CLI to upload and download from https://gofile.io/
Readme 184 KiB
Languages
Python 87.2%
Shell 12.8%