First release of this python package with functions like finding the spell or enchantment or filtering them out by specifying type. You can also list out all the spell names or enchantment names.
The script scrapes the data from the website of harrypotter.wikia.com
Get the Harry Potter Magic in Python now :)