Skip to content

MassiveBox/botsarchive_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BotsArchive API Wrapper for Go

Reference:

BotsArchive API Wrapper for Go aims to provide a simple interface to access botsarchive.com's API protocol with Go in a easy and fast manner.

Why?

Using the original BotsArchive's API directly with Go is a pain in the butt: numbers as strings, values that sometimes are there and sometimes aren't, bools as integers, parameters that disappear...

With this package, my goal is to simplify everything so you don't have to deal with all this bullcrap.

To achieve my goal, I've decided to completely change the API return values instead of keeping the original ones. Read the docs for this package to know where to find everything.

How to use

Install the package:

go get github.com/MassiveBox/botsarchive_api

and refer to the docs or the wiki for a detailed explanation. You can find some examples in the wiki as well.

Technical details

To improve performances and memory usage, instead of net/http, I'm using FastHTTP and instead of encoding/json, I'm using JSON Iterator.

This package will send data to the host api.botsarchive.com - Please make sure you aren't blocking it with a firewall.

Coverage

This package is supposed to be 100% compatible with BotsArchive's public API. If you find something isn't working as intended, open an issue.

I also have plans for the future to support BotsArchive's private API, the one that is used in the website to gather information about the bots, top bots, categories, etc.

Legal

All the data you get with this package comes from BotsArchive's API. It's exclusively BotsArchive's responsibility if you find something that violates the law.