Jump to content

Extract links from HTML


Ahmedmb
 Share

Recommended Posts

PLZ

I Need to extract Arabic subtitle link for files

Link http://subscene.com/The-Mentalist-Second-Season/subtitles-78829.aspx

<tr>
            <td>

                <a class="a1" id=s262069 href="javascript:Subtitle(262069, 'zip', '14', '0');">
                    <span class="r100" >
                        Arabic 
                    </span>
                     <span id="r262069">the.mentalist.202.the.scarlet.letter-notvBy Cats</span>
                </a> 
                

            <td class="a3">1
            <td>
            <td class="a4">
                <a href="/user/Profile.aspx?UserID=20221">cats_qatar</a>

            <td><a id="sm262069" href="/arabic/The-Mentalist-Second-Season/subtitle-262069.aspx">More info</a>
        
        </tr>

i need this link

/arabic/The-Mentalist-Second-Season/subtitle-262069.aspx

THX

Link to comment
Share on other sites

PLZ

I Need to extract Arabic subtitle link for files

Link http://subscene.com/The-Mentalist-Second-Season/subtitles-78829.aspx

<tr>
            <td>

                <a class="a1" id=s262069 href="javascript:Subtitle(262069, 'zip', '14', '0');">
                    <span class="r100" >
                        Arabic 
                    </span>
                     <span id="r262069">the.mentalist.202.the.scarlet.letter-notvBy Cats</span>
                </a> 
                

            <td class="a3">1
            <td>
            <td class="a4">
                <a href="/user/Profile.aspx?UserID=20221">cats_qatar</a>

            <td><a id="sm262069" href="/arabic/The-Mentalist-Second-Season/subtitle-262069.aspx">More info</a>
        
        </tr>

i need this link

/arabic/The-Mentalist-Second-Season/subtitle-262069.aspx

THX

You can use this UDF to this:

http://thorsten-willert.de/Themen/AutoIt/_HTML.au3

Example:

#include <INet.au3>
#include <_HTML.au3>

$HTML = _INetGetSource("http://YourExample.com/index.php")
MsgBox(0,"", _HTML_GetLink($HTML, "sm262069"))
Edited by Stilgar
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...