A MyAnimeList SQL migration utility and Go library.
- Export your list from MyAnimeList
- Run
malgo -o anime.sqlite yourAnimeList.xml
- Receieve SQLite database
./anime.sqlite
Malgo has so far been tested with the following databases. Let me know if you have success with any of the other database drivers.
- Sqlite3
The golang module provides structs and functions for reading and editing the migrated database.
malgo.storage.CreateSchema(someDb)
malgo.MigrateFile(someDb, "sample.xml")
user := malgo.models.SearchUser(someDb, "th3-z")
for _, review := range user.Reviews {
print(review.Series.Name)
print("\n")
}
A more complex example can be seen on my public website's repo. It produces the following table.
Run make build
to create a release for the CLI tool in ./bin
.
- Golang 1.13.x
- make
- gcc