Jump to content

Parse all text between the td-tags?


Guldstrand

Recommended Posts

Can someone please, PLEASE explain to me how i can extract/parse all the text between the td-tags?

Ex. Blyfri 95, 12,33 kr, 12,18 kr, - 10 öre, 30 dec



<table class="table-standard" style="width: 90.05%; height: 209px;">
    <thead>
        <tr>
            <th>Drivmedel</th>
            <th>Bemannad</th>
            <th> Obemannad</th>
            <th>
            <p>Senaste</p>
            <p><span style="background-color: #ededed;"> </span>ändring</p>
            </th>
            <th> Gäller fr.o.m.</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td> Blyfri 95</td>
            <td> 12,33 kr</td>
            <td> 12,18 kr</td>
            <td><span> - 10 öre</span></td>
            <td>  30 dec</td>
        </tr>
        <tr>
            <td> Blyfri 98</td>
            <td> 12,83 kr</td>
            <td> 12,68 kr</td>
            <td> - 10 öre</td>
            <td>  30 dec</td>
        </tr>
        <tr>
            <td> Etanol E85</td>
            <td>  9,43 kr</td>
            <td>  9,28 kr</td>
            <td> + 10 öre</td>
            <td>  22 dec</td>
        </tr>
        <tr>
            <td> Diesel</td>
            <td> 12,62 kr</td>
            <td> 12,47 kr</td>
            <td> - 10 öre </td>
            <td>  30 dec</td>
        </tr>
    </tbody>
</table>


Thanks in advance...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.