aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: b3ba01a67339ceda31c1c7c605aba468722cb240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# meow

Search nyaa (or any proxy/mirrors) with web scraping.

``` go 
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](https://git.vidhukant.com/meow/tree/LICENSE)

Copyright (c) 2024 Vidhu Kant Sharma