https://github.com/5rahim/go-qbit
Wrapper for qBittorrent Web API.
https://github.com/5rahim/go-qbit
go golang qbittorrent-api
Last synced: 9 days ago
JSON representation
Wrapper for qBittorrent Web API.
- Host: GitHub
- URL: https://github.com/5rahim/go-qbit
- Owner: 5rahim
- License: mit
- Created: 2024-11-07T15:22:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-23T14:33:59.000Z (over 1 year ago)
- Last Synced: 2026-02-16T03:57:41.476Z (4 months ago)
- Topics: go, golang, qbittorrent-api
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-qbit
Wrapper for [qBittorrent Web API](https://github.com/qbittorrent/qBittorrent/wiki/#login) (> v3.1.x)
Forked from [KnutZuidema/go-qbittorrent](https://github.com/KnutZuidema/go-qbittorrent)
### Example
```go
package main
import (
"fmt"
qbittorrent "github.com/5rahim/go-qbit"
)
func main() {
client := qbittorrent.NewClient(&qbittorrent.NewClientOptions{
Username: "",
Password: "",
Port: 8080,
Host: "127.0.0.1",
BinaryPath: "C:/Program Files/qBittorrent/qbittorrent.exe",
})
err := client.Login()
if err != nil {
fmt.Printf("failed to login: %v\n", err)
}
err = client.Start()
if err != nil {
fmt.Printf("failed to start qBittorrent: %v\n", err)
}
}
```
### qBittorrent settings
1. Go to `Options > Web UI`
2. Check the box for `Web User Interface (Remote Control)`