I am trying to get the product title and prices for each type of packaging from the combo box of the web page (http://www.havanahouse.co.uk/product/rattrays-marlin-flake-pipe-tobacco-50g).
<h1 itemprop="name" class="product_title entry-title">Rattray’s Marlin Flake Pipe Tobacco 50g tin</h1>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<table class="variations" cellspacing="0">
<tbody>
<tr>
<td class="label">
<label for="pa_packages">Packing</label>
</td>
<td class="value">
<select id="pa_packages" class="" name="attribute_pa_packages" data-attribute_name="attribute_pa_packages">
<option value="">Choose an option</option>
<option value="5-x-50g-tins">5 x 50g Tins</option>
<option value="50g-tin">50g Tin</option>
</select><a class="reset_variations" href="#">Clear selection</a>
</td>
</tr>
</tbody>
</table>
<p class="price"><span class="amount">£12.94</span>–<span class="amount">£63.95</span>
</p>
Each price is only for 1 options. So for example the price for a 50g-tin is 12.94 and 5-x-50g-tins is 63.95.
These are all different packaging options for the same product. I need to bring data in the following table:
Product name, packaging option, price.
any insight how to do it?