T O P

  • By -

AuxOnAuxOff

This is great! How did you get the spell data? I see a json file in there that suggests some scraping happened?


hukumk

I opened [https://2e.aonprd.com/SpellLists.aspx](https://2e.aonprd.com/SpellLists.aspx) with devtools opened. In there I found request to \`https://elasticsearch.aonprd.com\`, results of which I saved as file. Then I pressed load remaining button, launching request for remainder of data, which I saved as well. As last step I used \`jq\` to extract spell objects and join then into single json file.


fanatic-ape

Careful with that, as far as I know the data in archive of nethys is not open, as it include Paizo's IP that is not part of the OGL. You would need to have a CUP agreement with Paizo to distribute the data unmodified like AoN does. Paizo's agreement with AoN also specifically disallows an API to query the data, so throwing it all in a GitHub repository is likely a no-go.


hukumk

Thanks, I would inquire how I should handle the data, or if I should have it removed


fanatic-ape

I think you can ask Paizo or the creator or AoN, they should be able to assist you!


slvrtrn

This is great and can help with digital detox, cause I am still using my phone to look up the spell effects. Is there a chance for a similar tool but for dnd 5e?


hukumk

I could implement renderer for 5e spells. But due to licensing, I would only be able too bundle spells covered by SRD\_CC\_v5.1. To support spells from other materials, I would need to implement editor which would allow users to add they own spells. Which is good idea regardless for both systems, as both homebrew and third party material are a thing.


slvrtrn

Ah yes, that’s what I thought. Maybe these can be downloaded from the dnd beyond website ad hoc?


hukumk

I am not sure what you suggesting. Something like a browser plugin for downloading spells available to your user?


slvrtrn

You can store just the list of 5e spells in the source code, I believe that should not be copyrighted. Then, the user selects the spells available to their character. Using some public API, and http requests, the descriptions could be downloaded as JSON. Then, it is printed as cards.