2011-04-10, 10:08 AM
When it comes to parsing HTML i really know nothing about it.
I want to fetch info from anidb.net.
This is a sample of what i want to parse(with some more i have not posted).
I want to parse the value of each td(the contents between <td class="value">{content}</td>) within the specific TR tag.
But i have no idea how to do it, nor will the script know i want the year, type etc.
Any code that will help me?
I want to fetch info from anidb.net.
<tr class="official verified no">
<th class="field">Official Title</th>
<td class="value">
<span class="icons">
<span class="i_icon i_audio_en" title=" language: english"><span>en</span></span>
</span>
<label>Red Riding Hood Chacha</label></td>
</tr>
<tr class="g_odd official verified no">
<th class="field">Official Title</th>
<td class="value">
<span class="icons">
<span class="i_icon i_audio_ja" title=" language: japanese"><span>ja</span></span>
</span>
<label>赤ずきんチャチャ</label></td>
</tr>
<tr class="type">
<th class="field">Type</th>
<td class="value">TV Series, 74 episodes</td>
</tr>
<tr class="g_odd year">
<th class="field">Year</th>
<td class="value">07.01.1994 till 30.06.1995</td>
</tr>
This is a sample of what i want to parse(with some more i have not posted).
I want to parse the value of each td(the contents between <td class="value">{content}</td>) within the specific TR tag.
But i have no idea how to do it, nor will the script know i want the year, type etc.
Any code that will help me?