Skip to content

Instantly share code, notes, and snippets.

@brianpursley
Created November 20, 2015 15:35
Show Gist options
  • Save brianpursley/661071c026b9bf130971 to your computer and use it in GitHub Desktop.
Save brianpursley/661071c026b9bf130971 to your computer and use it in GitHub Desktop.
Example HTML file for scraping
<html>
<head>
<title>Example Web Page</title>
<style>
.container {
display: table;
}
.row {
display: table-row;
}
.row div {
display: table-cell;
padding: 2px 4px;
}
</style>
</head>
<body>
<h1>Example Web Page</h1>
<div>
<h2>Product ABC</h2>
<div class="container">
<div id="productCodeRow" class="row">
<div>Product Code:</div><div>1234567890</div>
</div>
<div id="manufacturerRow" class="row">
<div>Manufacturer:</div><div>Acme, Inc</div>
</div>
<div id="priceRow" class="row">
<div>Price:</div><div>$34.56</div>
</div>
<div id="dimensionsRow" class="row">
<div>Dimensions:</div><div>14x12x4</div>
</div>
<div id="weightRow" class="row">
<div>Weight:</div><div>11 oz</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment