An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.2% dependent packages on proxy.golang.org
Top 3.5% dependent repos on proxy.golang.org

proxy.golang.org : github.com/rl404/go-malscraper

Package malscraper provides methods to parse MyAnimeList web page. Malscraper will get HTML body response, parse necessary information from the elements, clean them, and convert to golang model (struct) that can be used easily by other project/package. Malscraper is using "github.com/PuerkitoBio/goquery" package for parsing the HTML body. Malscraper provides caching system. As default, malscraper is using in-memory but it is recommended to use persistent cache such as redis. That's why malscraper allows you to create your own cacher which implements this interface. Or you can choose from `https://github.com/rl404/mal-plugin/tree/master/cache`. And use it when initiating malscraper. Logging is also interface so you can use your own logging. And use it when initiating malscraper. Some methods require specific value for the parameter. So, it is recommended to fill the parameter with provided constant to prevent unwanted errors. Errors returned by methods are guaranteed from malscraper errors package. You should be able to handle the errors easier. The original errors (from the dependency package) can still be viewed through printed log (if you turn on error log level). All methods also return HTTP response code to help you distinguish the error. All methods are requesting and accessing MyAnimeList web page so use them responsibly and don't spam too much or your ip will get banned or blacklisted. Recommended 1 request per 3 seconds and use caching. Or for more safety, 1 request per 5 seconds.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/rl404/go-malscraper
Keywords: api , golang , myanimelist , unofficial
License: MIT
Latest release: over 3 years ago
First release: over 5 years ago
Namespace: github.com/rl404
Dependent packages: 2
Dependent repositories: 2
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago

    Loading...
    Readme
    Loading...