meow
Search nyaa (or any proxy/mirrors) with web scraping.
package main
import (
"fmt"
"vidhukant.com/meow"
)
func main() {
q := meow.SearchQuery {
SearchString: "mushishi",
BaseURL: "nyaa.si", // default
Filter: 0, // none (default)
Category: meow.CategoryAll, // default
Page: 1, // default (range 1-100)
}
res, err := meow.Search(q)
if err != nil {
panic(err)
}
for _, i := range res {
fmt.Println(i.Title)
fmt.Println(i.Category)
fmt.Println(i.Flag)
fmt.Println(i.URL)
fmt.Println(i.TorrentURL)
fmt.Println(i.MagnetURL)
fmt.Println(i.FileSize)
fmt.Println(i.TimeStamp)
fmt.Println(i.Seeders)
fmt.Println(i.Leechers)
fmt.Println(i.Downloads)
}
}
Available categories
Pretty self explanatory
-
CategoryAll
-
CategoryAnime
CategoryAnimeAMV
CategoryAnimeEnglish
CategoryAnimeNonEnglish
-
CategoryAnimeRaw
-
CategoryAudio
CategoryAudioLossless
-
CategoryAudioLossy
-
CategoryLiterature
CategoryLiteratureEnglish
CategoryLiteratureNonEnglish
-
CategoryLiteratureRaw
-
CategoryLiveAction
CategoryLiveActionEnglish
CategoryLiveActionIdolPV
CategoryLiveActionNonEnglish
-
CategoryLiveActionRaw
-
CategoryPictures
CategoryPicturesGraphics
-
CategoryPicturesPhotos
-
CategorySoftware
CategorySoftwareApps
CategorySoftwareGames
Available filters
FilterNone
FilterNoRemakes
FilterTrustedOnly
License
Licenced under GNU General Public Licence
GNU GPL License: LICENSE
Copyright (c) 2024 Vidhu Kant Sharma