From 68a449da1aff148ad500f448e7d753e7745ba845 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 3 Jun 2025 22:25:01 +0530 Subject: first commit --- meow/.hugo_build.lock | 0 meow/.hugo_upload | 3 ++ meow/content/_index.md | 91 ++++++++++++++++++++++++++++++++++++++++++++++++ meow/hugo.toml | 27 ++++++++++++++ meow/static/favicon.ico | Bin 0 -> 1150 bytes meow/themes/zt_hugo | 1 + 6 files changed, 122 insertions(+) create mode 100644 meow/.hugo_build.lock create mode 100644 meow/.hugo_upload create mode 100644 meow/content/_index.md create mode 100644 meow/hugo.toml create mode 100644 meow/static/favicon.ico create mode 160000 meow/themes/zt_hugo (limited to 'meow') diff --git a/meow/.hugo_build.lock b/meow/.hugo_build.lock new file mode 100644 index 0000000..e69de29 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 new file mode 100644 index 0000000..4927520 Binary files /dev/null and b/meow/static/favicon.ico differ diff --git a/meow/themes/zt_hugo b/meow/themes/zt_hugo new file mode 160000 index 0000000..f7175a6 --- /dev/null +++ b/meow/themes/zt_hugo @@ -0,0 +1 @@ +Subproject commit f7175a61b6f1c8dbe5525c29081d0b00bce998df -- cgit v1.2.3