Some Python Fun with MusicBrainz and Marvel Comics

Boy I know some people that will go nuts over these two libraries.1

First up is the MusicBrainz Python library. Fuzzy disc look up from a python script! Very cool.

Did you Marvel Comics has an API? Yeah, that’s awesome. Here’s a nice demo of using it to generate VM’s with random Marvel character names. I could see this being a lot of fun for random string generation. The API has some interesting calls:

GET /v1/public/stories/{storyId}/events

Fetches lists of events in which a specific story appears, with optional filters. See notes on individual parameters below.

Pretty neat stuff. I’d really love a call to pull random dialog by character for some fun Lorem Ipsum.

  1. I suspect Merlin has already been very deep on these rabbit holes. ↩︎