Jump to content

[SOLVED] Get text from HTML


Norsk.Firefox

Recommended Posts

Hello,

I have some general questions:

I've got a HTML document, and I want to "extract" part of the text from it.

I want all text from within a <h4> tag, and all info from this part:

<tr>

    <td class='tabell'><a target='_top' class='print' title='Kampinformasjon' href='kamp.asp?KampId=395506'>1205</a></td>

    <td class='tabell'><a target='_top' class='print' title='Kampinformasjon' href='kamp.asp?KampId=395506'>54J1431005</a></td>

    <td class='tabell'><a target='_top' class='print' title='Kampinformasjon' href='kamp.asp?KampId=395506'>395506</a></td>

    <td class='tabell'><a target='_top' class='print' title='Anleggsinformasjon' href='anlegg.asp?AnleggId=45'>Nordby Idrettshall</a></td>

    <td class='tabell'><a target='_top' class='print' title='Lagsinfomasjon' href='organisasjon.asp?OrgId=12326'>Nordby</a></td>

    <td class='tabell'><a target='_top' class='print' title='Lagsinfomasjon' href='organisasjon.asp?OrgId=10092'>Mysen 1</a></td>

    <td nowrap class='tabell' align='center'><a target='_top' class='print' title='Kampinformasjon' href='kamp.asp?KampId=395506'> - </a></td>

    <td class='tabell' align='left'><a target='_top' class='print' title='Personinformasjon' href='person.asp?PersonId=174655'>Egidius</a> / <a target='_top' class='print' title='Personinformasjon' href='person.asp?PersonId=169892'>Nilsen</a></td>

    <td class='tabell' align='left'><a target='_top' class='print' title='Organisasjonsinformasjon' href='organisasjon.asp?OrgId=5185'>Nordby IL Håndballgruppa</a></td>

 

I want the info marked with red, and it's repeated more like that in the document, so I want it to check them all. Anyone that can make a function to fetch the info? Or give me some hints?

 

NF

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.