Data Scraping for E-commerce Website

Sohanur Rahman Sohan

import requests

import pandas as pd
from bs4 import BeautifulSoup

url = 'https://www.iplt20.com/auction'

r = requests.get(url)
soup = BeautifulSoup(r.text, 'lxml')

table = soup.find('table', class_='ih-td-tab auction-tbl', id='t4')
# print(table)
header = table.find_all('th')
# print(header)
header_list = []
for i in header:
mk_list = i.text
header_list.append(mk_list)

print(header_list)
df = pd.DataFrame(columns=header_list)
print(df)
rows = table.find_all('tr')
for i in rows[1:]:
data = i.find_all('td')
row = [tr.text.strip() for tr in data]
# print(row)
l = len(df)
df.loc[l] = row
df.to_csv('IPL2023_auction_top_byu.csv')

Like this project

Posted Jul 1, 2023

Scraped product data from multiple e-commerce websites using Python programming, providing the client with a comprehensive database of products and pricing, resulting in improved market analysis and informed decision-making.

Join 50k+ companies and 1M+ independents

Contra Logo

© 2025 Contra.Work Inc