GoNeko: A golang scraping package for Nyaa

GoNeko is a simple, lightweight and ultrafast scraper for nyaa.si
You can search torrents just like on the website, and get the result as golang structs.
Installation
go get github.com/POMPOSAN/goneko
Documentation
- struct Result :
Every functions return an array of 75 *goneko.Result OR nil if there is not 75 results on the page
-
Title (string) : Title
-
Cat (string) : Category
-
CommentCount (int) : Number of comment
-
Magnet (string) : Magnet Link
-
ViewUrl (string) : URL of the result page
-
Size (string) : Size
-
TimeStamp (int) : Timestamp
-
Seeders (int) : Number of seeders
-
Leechers (int) : Numbers of leechers
-
Completed (int) : Number of completed downloads
-
Details (details) : You have to use GetDetails method on the result to get the details, otherwise its value is nil
- struct details :
Additional informations on a Result. You have to use GetDetails method on the Result to get this.
-
Submitter (string) : Submitter
-
Information (string) : Information field of the result
-
Description (string) : Description of the result as HTML
-
InfoHash (string) : Info Hash
-
Comments ([]*Comment) : Comments of the result
Represent a nyaa comment
-
Submitter (string) : Submitter of the comment
-
Timestamp (int) : Timestamp
-
Content (string) : Content of the comment as HTML
- func Parse(url string)
Return an array containing the nyaa entrys of the specified url.
- func HomePage()
Return an array containing the nyaa entrys of the home page.
- func Search(opts *Opts)
Allow you to make a precise search
- struct Opts :
Options of your search
-
Query (string) : The text of your search
-
Page (int) : The page number
-
User (string) : Show only entrys posted by the specified user
-
Filter (int) :
- 0 - No Filter
- 1 - No Remakes
- 2 - Trusted Only
-
Cat (int) & Subcat (int) :