Python, NLP, Spacy.
web page, and then uses regular expressions to extract the categories: def get_categories(article_name): wiki = wiki_api.Wikipedia(language = 'en') p = wiki.page(article_name) if not p.exists: return None r = requests.get(p.fullurl) html = r.text.replace('\r', '').replace('\n', '') catlinks_regexp