Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Web scraping python beautifulsoup
<html>
<head>
<title>
My Example Website
</title>
<style>
.data-container {
background-color: blue;
color: white;
text-align: center;
margin: 10px;
padding: 10px;
}
table {
width: 75%;
border-collapse: collapse;
text-align: center;
}
td {
border: 1px solid black;
}
</style>
</head>
<body>
<div class="data-container">
Apple
</div>
<div class="data-container">
Orange
</div>
<div class="data-container">
Peach
</div>
<div class="data-container">
Pear
</div>
<div class="data-container">
Avocado
</div>
<div class="data-container">
Strawberry
</div>
<div class="data-container">
Grape
</div>
<div class="data-container">
Blueberry
</div>
<div class="data-container">
Blackberry
</div>
<table id="data-table">
<tr>
<th>
Address
</th>
<th>
Price
</th>
</tr>
<tr>
<td>
1 First St
</td>
<td>
100000
</td>
</tr>
<tr>
<td>
2 Second St
</td>
<td>
200000
</td>
</tr>
<tr>
<td>
3 Third St
</td>
<td>
300000
</td>
</tr>
<tr>
<td>
4 Fourth St
</td>
<td>
400000
</td>
</tr>
<tr>
<td>
5 Fifth St
</td>
<td>
500000
</td>
</tr>
<tr>
<td>
6 Sixth St
</td>
<td>
600000
</td>
</tr>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment