🧰 gofile-tool
Tải / upload Gofile.io ở tốc độ tối đa — tự động vượt chặn IP của datacenter/VPS.
Gofile hay drop kết nối TLS với IP máy ảo (báo error-rateLimit, treo TLS handshake).
gofile-tool tự xử lý: thử đường thẳng → nếu bị chặn thì tự bật Tor, xoay IP, tạo tài
khoản guest và ký đúng header X-Website-Token mà Gofile đòi. Dữ liệu lớn vẫn tải/upload
thẳng qua store*.gofile.io / upload.gofile.io nên tốc độ nguyên bản.
pip install gofile-tool
gofile-tool download Uc4c9oyJ -o ./tai-ve
⚡ Cài đặt
pip install gofile-tool # hoặc: pipx install gofile-tool
# chỉ cần khi IP của bạn bị Gofile chặn (tool tự bật Tor):
sudo apt install -y tor # Debian/Ubuntu
brew install tor # macOS
Yêu cầu: Python ≥ 3.8.
🚀 Lệnh
gofile-tool info <CODE> # xem metadata file/folder
gofile-tool download <CODE> -o ./tai-ve # tải file hoặc cả folder
gofile-tool upload ./file.zip # up + tự set public + in link
gofile-tool public <CODE> # mở public cho nội dung đã có
gofile-tool delete <FILE_ID> --token <TK> # xoá file
gofile-tool stop-tor # tắt Tor
| Cờ | Ý nghĩa |
|---|---|
--json |
Output JSON (cho AI agent / script). Luôn kèm _token để quản lý sau |
-o DIR |
Thư mục lưu file tải về (mặc định .) |
--workers N |
Số luồng khi tải folder (mặc định 4) |
--token TOKEN |
Dùng tài khoản Gofile của bạn (mặc định tự tạo guest) |
--proxy URL |
Dùng proxy/VPN riêng: --proxy socks5h://127.0.0.1:1080 |
--no-tor |
Không dùng Tor |
--no-verify |
Bỏ qua kiểm tra MD5 |
Ví dụ JSON (gofile-tool upload ./file.zip --json):
{
"ok": true, "name": "file.zip", "size": 577188003, "md5": "912175…",
"code": "UGqKJoFZ", "page": "https://gofile.io/d/nAF2ydFc",
"file_id": "783e9f12-…", "speed_MBps": 83.0,
"public": true, "link": "https://gofile.io/d/UGqKJoFZ",
"_token": "Q23LICkojSBdNVgRjhbx7z72ZqVBldGw"
}
🤖 Dành cho AI agent
Không cần agent thông minh — chỉ cần bảo nó chạy:
pip install gofile-tool
gofile-tool download <CODE> -o <DIR> --json # hoặc: gofile-tool upload <FILE> --json
Mọi lệnh đều có --json; output gồm link, md5, size, ok, _token.
Tool tự lo: tài khoản, chữ ký, đổi IP, resume, kiểm tra MD5.
🔍 Nguyên lý (3 mánh)
- Ký đúng chữ ký web. Gofile đòi
X-Website-Token = sha256(UA :: ngôn ngữ :: accountToken :: floor(epoch/14400) :: secret).secretnằm trong/js/wt.obf.jsvà bị xoay định kỳ → tool tự tải, tự bóc (và đối chiếu chéo bằngnodenếu có), cache 6 giờ. - Đổi IP bằng Tor khi bị chặn. Tự cài/khởi động Tor (SOCKS5
9050, control9051), gặperror-rateLimitthì gửiSIGNAL NEWNYMđổi exit node, thử lại tối đa 6 lần. - Tách đường điều khiển / đường dữ liệu. Chỉ vài KB metadata đi qua Tor/chậm;
còn dữ liệu lớn đi thẳng
store*/upload→ tốc độ tối đa (đo thực tế: tải 36 MB/s, upload 83 MB/s).
Không vượt quyền truy cập: tool chỉ gửi đúng header mà trình duyệt vẫn gửi; file private thì vẫn không mở được.
🩺 Sự cố thường gặp
| Thông báo | Cách sửa |
|---|---|
error-notPremium |
Secret đã xoay → tool tự nạp lại; nếu kẹt: xoá ~/.cache/gofile_secret.json |
error-rateLimit |
Tool tự đổi mạch Tor; chờ vài giây |
API thất bại (direct: ConnectTimeout) |
Thiếu Tor → sudo apt install -y tor, hoặc --proxy socks5h://… |
| Folder tải chậm | Gofile chỉ cho ZIP folder ở gói Premium → tool tải từng file, đa luồng |
Permission denied …/control_auth_cookie |
sudo rm -rf ~/.cache/gofile-tor rồi chạy lại |
| Upload xong bị "Protected content" | Phải set public cho cả thư mục cha — tool đã làm sẵn |
⚠️ Giới hạn
- Mặc định dùng tài khoản guest (tự tạo). Muốn giữ file lâu: truyền
--token <token của bạn>hoặc setGOFILE_TOKEN. - Gofile miễn phí dọn file sau ~10 ngày không có lượt tải.
- Cần
tor(hoặc proxy riêng) chỉ khi IP của bạn bị chặn; IP nhà thường không cần.
Giấy phép
MIT
Metadata
Release files for gofile-tool 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gofile_tool-0.1.0.tar.gz | 17.0 kB | Without provenance | Details for gofile_tool-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gofile_tool-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gofile_tool-0.1.0-py3-none-any.whl |
Total release size: 31.3 kB
Release files / gofile_tool-0.1.0.tar.gz
| Download URL | gofile_tool-0.1.0.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe4205ed5fd54f34730fa11c008fd5335564657eefd17b6eab52cecac2673f81
|
|
BLAKE2b-256 checksum How to use checksums |
ffb563db5dd1642083986b3e842c30490bd95856746c76c398a7f5f6ebff57fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / gofile_tool-0.1.0-py3-none-any.whl
| Download URL | gofile_tool-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
237d40aeb8fc1c29dd1533aba3e8aaabfce00224d5df04b56d7c80fcd0695937
|
|
BLAKE2b-256 checksum How to use checksums |
6a6a408fc2f235420a61030d707459d1e920b68cc1b69e04e4adec7f2ecd1070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for gofile-tool 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.