https://github.com/obowersa/wfwiki
https://github.com/obowersa/wfwiki
fandom-wiki warframe
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/obowersa/wfwiki
- Owner: obowersa
- License: mit
- Created: 2020-05-24T02:57:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T03:31:14.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T12:39:56.311Z (almost 2 years ago)
- Topics: fandom-wiki, warframe
- Language: Go
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Warframe Wiki Module Query
[](https://goreportcard.com/report/github.com/obowersa/wfwiki)
## Summary
wfwiki is a go library for retrieving Warframe Fandom Wiki module as structs
## Details
wfwiki is heavily inspired by [Snekw's work](https://wf.snekw.com/)
Behind the scenes, wfwiki uses a rate limited http request (1 tick per second) to call the Fandom Wiki's API. The JSON
is then parsed through an embeded lua VM to generate a JSON string for the data table, and unmarshall's this into a struct.
Current tables which are supported:
- Weapons
- Warframes
- Modules
## TODO
- [ ] Improve testing and test coverage
- [ ] Implement CICD on Tekton
- [ ] Support for data tables which have name collisions in the same object. Currently duplicate names like SecondaryAttack for a weapon will get dropped
- [ ] Implement simple cache with checking of hash
- [ ] Implement lua worker pool
- [ ] Move GetStats outside of package. Currently it is used for a temporary test client
- [ ] Create examples folder
## Example
```go
package main
import "github.com/obowersa/wfwiki/pkg/wfwiki"
func main (){
wf := wfwiki.NewWFWiki()
wf.GetStats("warframe","Ash")
}
```