I am a newbie to python. I want to extract the name of categories and webpages (category tree) of wikipedia page through the crawling procedure. During the course of this I am facing error and I am frustrated with an error. In this regard, any help is greatly appreciated. The code snippet of what I have tried is as follows. I am using Python 3.6 version.