Meow #
Search nyaa (or any proxy/mirrors) with web scraping.
1package main
2
3import (
4 "fmt"
5 "vidhukant.com/meow"
6)
7
8func main() {
9 q := meow.SearchQuery {
10 SearchString: "mushishi",
11
12 BaseURL: "nyaa.si", // default
13 Filter: 0, // none (default)
14 Category: meow.CategoryAll, // default
15 Page: 1, // default (range 1-100)
16 }
17
18 res, err := meow.Search(q)
19 if err != nil {
20 panic(err)
21 }
22
23 for _, i := range res {
24 fmt.Println(i.Title)
25 fmt.Println(i.Category)
26 fmt.Println(i.Flag)
27 fmt.Println(i.URL)
28 fmt.Println(i.TorrentURL)
29 fmt.Println(i.MagnetURL)
30 fmt.Println(i.FileSize)
31 fmt.Println(i.TimeStamp)
32 fmt.Println(i.Seeders)
33 fmt.Println(i.Leechers)
34 fmt.Println(i.Downloads)
35 }
36}
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