Python, NLP, Spacy.
= re.compile(r'class="mw-normal-catlinks".*?<\/div>') catnames_regexp = re.compile(r'<a.*?>(.*?)<\/a>') cat_src = catlinks_regexp.findall(html)[0] cats = catnames_regexp.findall(cat_src) if len(cats) == 0: return ['Uncategorized'] else return cats[1:len(cats)] Let’s see the categories for