Skip to content
/ gfile Public

A python module to download and upload from gigafile.nu

License

Notifications You must be signed in to change notification settings

Sraq-Zit/gfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A python module to download and upload from gigafile. This is a personal tool as you may come across errors and bugs so feel free to add an issue.

Install

$ python setup.py install --user
or
$ pip install git+https://github.com/Sraq-Zit/gfile.git

Usage

Module

Import

from gfile import GFile

Download

url, cookies = GFile('https://XX.gigafile.nu/YYY').get_download()
# or
filename = GFile('https://XX.gigafile.nu/YYY').download()

Upload

url = GFile('path/to/file', progress=True).upload().get_download_page()

CLI

$ gfile upload path/to/file

$ gfile download https://66.gigafile.nu/0320-b36ec21d4a56b143537e12df7388a5367

$ gfile -h
usage: Gfile [-h] [-p] [-n THREAD_NUM] [-s CHUNK_SIZE] [-m CHUNK_COPY_SIZE] {download,upload} uri

positional arguments:
{download,upload}     Upload or download
uri                   Filename to upload or url to download

optional arguments:
-h, --help            show this help message and exit
-p, --hide-progress   Hide progress bar
-n THREAD_NUM, --thread-num THREAD_NUM
                        Number of threads used for upload (can incease speed)
-s CHUNK_SIZE, --chunk-size CHUNK_SIZE
                 allowed chunk size per upload
-m CHUNK_COPY_SIZE, --copy-size CHUNK_COPY_SIZE
                        Specifies size to copy the main file into pieces (the size loaded in RAM)

About

A python module to download and upload from gigafile.nu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages