Example
use dotenv;
use env;
use VndbApiClient;
use ;
async
VNDB
This crate allows for data collection from the VNDB site. VNDB (Visual Novel Database) stores a plethora of information about Visual Novels, Characters, Producers, Tags, and so on.
Documentation
The entirety of this crate is based on the new HTTPS-based API Documentation and aims to simplify the way you collect data from the site. Further documentation and use cases for this crate can be found in the "examples" directory on github or in the respective modules of the parts of the crate you use.
Requirments
This crate only requires a VNDB API key to use. To get an API key follow the instructions below, or click on this link (only if you already have an account). API Key Documentation.
Obtaining an API Key:
- Register for a VNDB account (or Login if you already have one)
- Open the "My Profile" tab and navigate to the "Applications" section
- Create a new token and use as instructed (see "examples" directory)
Recursive Queries
Fields: This section allows you to select the pieces of information you want to pull from the site about a particular subject (Visual Novels, Producers, etc.). Unfortunately, due to the recursive nature of the Visual Novel, Release, and Character queries, recursive field choices have been limited. And, while the structs in this crate DO allow for said recursive field queries, recursive selection of fields is quite impractical and causes VNDB to deny providing a response due to the large size. These limitations only apply to the Visual Novel, Release, and Character queries. You ARE still be able to fill all struct fields with the aforementioned queries. Recursive sections (such as related Visual Novels in a Visual Novel query) in the structure WILL still have their name and id such that they can be searched later on for extra information.