Visvesvaraya Technological University “jnana Sangam” Belagavi Karnataka India SECAB Institute of Engineering & Technology, Vijayapur Department Of Master Of Computer Applications 2022-2023 A Seminar On Web Scraping And Numerical Analysis By Course Co- Ordinator Prof.Nazeera Madabhavi Mohammad Azeem Maniyar 2SA22MC013
Web Scraping Web scraping in Python is a technique used to extract data from websites. It's a valuable skill in data analytics as it allows you to collect large amounts of data from the web for analysis
Beautiful Soup l xml Requests Scrapy Selenium html5lib Python libraries are commonly used. Here are some most Popular libraries
Program from lxml import objectify import pandas as pd # Parse XML data xml_data = objectify.parse ('properties.xml') root = xml_data.getroot () # Root element # Extract data and column names data = [] cols = [] for child in root.getchildren (): data.append ([ subchild.text for subchild in child.getchildren ()]) cols.append ( child.tag ) # Create DataFrame df = pd.DataFrame (data).T # Create DataFrame and transpose it # Set column names df.columns = cols # Print DataFrame print( df )