https://github.com/hibare/go-yts
Scrape YTS sites for trending movies
https://github.com/hibare/go-yts
bot docker go movies yts
Last synced: 2 months ago
JSON representation
Scrape YTS sites for trending movies
- Host: GitHub
- URL: https://github.com/hibare/go-yts
- Owner: hibare
- Created: 2022-09-25T12:23:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2026-04-25T05:27:57.000Z (2 months ago)
- Last Synced: 2026-04-25T07:28:05.741Z (2 months ago)
- Topics: bot, docker, go, movies, yts
- Language: Go
- Homepage:
- Size: 8.69 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go-YTS
Golang program to watch for `Popular Downloads` on YTS and send notifications.
Script uses web scrapping methodology to check for popular downloads.
## Deployment / Execution
There are two ways to run this program.
1. Run binary directly on host.
2. Run in Docker
### Run binary directly on host
For each release, binaries are published on Github release page using goreleaser.
- Download platform specific binary from Github release page.
- Build binary on the host
To build binary on the host, clone this repo and execute following command in the root of project directory.
```shell
go build -o /bin/go_yts ./cmd/yts/main.go
```
Rename file `app.env.example` to `app.env` and populate all environment variables required for the program to execute. Alternatively, you can export environment variables.
### Run in Docker
go-cyts is packaged as docker container. Docker image is available on [Docker Hub](https://hub.docker.com/r/hibare/go-yts).
Use following docker-compose.yml definition to run it in Docker.
```shell
version: "3.7"
services:
go-yts:
image: hibare/go-yts
container_name: go-yts
hostname: go-yts
restart: always
environment:
- GO_YTS_SCHEDULE=0 */4 * * *
- GO_YTS_DATA_DIR=/data
volumes:
- go-yts:/data
volumes:
go-yts:
```
## Environment Variables
| Variable | Description | Default Value |
| ------------------------ | --------------------------------------------------- | -------------- |
| GO_YTS_SCHEDULE | Internal cron schedule. Uses standard cron notation | 0 \/4 \* \* \* |
| GO_YTS_DATA_DIR | Directory to store db files | /data |
| GO_YTS_HTTP_REQUEST_TIMEOUT | Request timeout value for scrapper | 60 Seconds |
| GO_YTS_NOTIFIER_DISCORD_WEBHOOK | Discord notification webhook | - |
| GO_YTS_NOTIFIER_DISCORD_ENABLED | Discord notification status | false |
| GO_YTS_LOG_LEVEL | Log Level (INFO, ERROR, WARN, DEBUG) | INFO |
| GO_YTS_LOG_MODE | Log mode (PRETTY, JSON) | PRETTY |
## Notifications
Currently, only Discord is supported as notification destinations.