diff options
Diffstat (limited to 'meow')
-rw-r--r-- | meow/.hugo_build.lock | 0 | ||||
-rw-r--r-- | meow/.hugo_upload | 3 | ||||
-rw-r--r-- | meow/content/_index.md | 91 | ||||
-rw-r--r-- | meow/hugo.toml | 27 | ||||
-rw-r--r-- | meow/static/favicon.ico | bin | 0 -> 1150 bytes | |||
m--------- | meow/themes/zt_hugo | 0 |
6 files changed, 121 insertions, 0 deletions
diff --git a/meow/.hugo_build.lock b/meow/.hugo_build.lock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/meow/.hugo_build.lock diff --git a/meow/.hugo_upload b/meow/.hugo_upload new file mode 100644 index 0000000..0bda291 --- /dev/null +++ b/meow/.hugo_upload @@ -0,0 +1,3 @@ +user=vidhukant +host=vidhukant.com +target_dir=/var/www/meow-website diff --git a/meow/content/_index.md b/meow/content/_index.md new file mode 100644 index 0000000..425e42f --- /dev/null +++ b/meow/content/_index.md @@ -0,0 +1,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 diff --git a/meow/hugo.toml b/meow/hugo.toml new file mode 100644 index 0000000..2921522 --- /dev/null +++ b/meow/hugo.toml @@ -0,0 +1,27 @@ +baseURL = 'https://meow.vidhukant.com/' +languageCode = 'en-us' +title = 'Meow - Nyaa web scraper for Go' +theme = "zt_hugo" +disableKinds = ["taxonomy", "term"] +enableRobotsTXT = true + +[params] +projectTitle = "Meow" +projectDescription = "Get search results from Nyaa through web scraping with GoLang" +gitURL = "https://git.vidhukant.com/meow" +extraNavLinks = [ +] + +[markup] + [markup.highlight] + anchorLineNos = false + codeFences = true + guessSyntax = true + hl_Lines = '' + hl_inline = false + lineAnchors = '' + lineNoStart = 1 + lineNos = true + lineNumbersInTable = false + noClasses = false + tabWidth = 4 diff --git a/meow/static/favicon.ico b/meow/static/favicon.ico Binary files differnew file mode 100644 index 0000000..4927520 --- /dev/null +++ b/meow/static/favicon.ico diff --git a/meow/themes/zt_hugo b/meow/themes/zt_hugo new file mode 160000 +Subproject f7175a61b6f1c8dbe5525c29081d0b00bce998d |