Bulk import Categories with 2 levels of subcategories

Hi there,

I would like to import over 2000 categories and two levels of sub-categories into my subsite for a custom post type.

I already have a list with parent- childeren and grandchilderen categories.

And it’s for a custom post type.

Any suggestions?