gofetch

module
v0.0.0-...-4b28c8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: MIT

README ΒΆ

GoFetch

Go Reference Go Report Go Coverage go workflow

A simple magnet link scraper that filters the items based on regular expressions.

Work in progress 🚧

This is a work in progress, and it's not yet ready for use.

Installation πŸ’Ύ

go install github.com/roarc0/gofetch/cmd/gofetch-cli@latest

Usage πŸ„

Create the configuration file in ~/.config/gofetch/config.yaml replace variables with actual values.

memory:
    filepath: gofetch.db
sources:
    nyaa:
        type: nyaa
        uris:
            - https://$URL/?c=1_2&s=seeders&o=desc
entries:
    animeName:
        sourcename: nyaa
        filter:
            matchers:
                - type: regex
                  matcher:
                    regex: .*AnimeName.*
                    matchtype: required
                - type: regex
                  matcher:
                    regex: ^\[Releaser\].*
                    matchtype: required
                - type: regex
                  matcher:
                    regex: .*1080p.*
                    matchtype: required
                - type: regex
                  matcher:
                    regex: .*(480|720)p.*
                    matchtype: exclude
    animeName2:
        sourcename: nyaa
        filter:
            matchers:
                - type: regex
                  matcher:
                    regex: .*AnimeName2.*
                    matchtype: required
                - type: regex
                  matcher:
                    regex: ^\[Releaser2\].*
                    matchtype: required
                - type: regex
                  matcher:
                    regex: .*1080p.*
                    matchtype: required
                - type: regex
                  matcher:
                    regex: .*(480|720)p.*
                    matchtype: exclude

Credits ⭐

License πŸ“œ

The MIT License (MIT). Please see License File for more information.

Directories ΒΆ

Path Synopsis
cmd
gofetch-cli command
internal
test/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL