Dokkan News Update
Added 2022-07-27 07:47:27 +0000 UTCPersonal update: I've suddenly have to move this and next week, so that's why this update is a bit slower.
Getting the news on the site has a few steps:
- Download the news from the game into a database. Due to licensing, I had to write this from scratch instead of using any of the open-source bots. I choose to download all the data into a SQLite database, including the images.
- The wiki server needs to parse the custom text format Dokkan uses to format their news into something that can be used on the site. An example output of this is attached. This is mostly done. What's currently missing is the rendering of "grouped" elements (links, centering, etc.) and card display. Grouped elements are a challenge since you then need to support nesting: a link text can be formatted or contain images.
- Finally, the site needs to be able to interpret this new news format and render it to be displayed and interactable. Other than the nested grouped elements, this is mostly done.
See what it looks like so far:



Comments
good stuff!!
kohiwonomitai
2022-07-27 10:45:07 +0000 UTC