Lab 4 Description - MadhuriGumma/Python-Programming GitHub Wiki

The Code for Lab 4 is similar to that of a InClass 4. In this part I tried to exact body or content of the data. Once the Wiki page is parsed as html page. We can extract whatever part of it using the tag elements like 'p'(Content), 'h3'(headers), 'th','tr','td'(table elements) and also title of the page(h1 element). We have a function called "find" in soup class which can find the elements.

Later we open a file in write mode file = open(file_title,'w') and write whatever data we extracted into it. I have uploaded the text file as well along with source. Below are the screen shots for the work I have done.

Output: