1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iMacro on extract hyperlink

Discussion in 'Hire a Freelancer' started by baokyrox, Oct 31, 2013.

  1. baokyrox

    baokyrox BANNED BANNED

    Joined:
    Oct 10, 2008
    Messages:
    429
    Likes Received:
    34
    iMacro on extract hyperlink within a region of text

    $data = inbtwn($getpage,"Episode name","<div id=\"rightside\">");
    preg_match_all( '/<\s*A[^>]HREF="(.*?)"\s?(.*?)>/i', $data, $match);

    Assuming get page is a HTML Source Code

    Episode name is the start of the cut
    <div id="rightside"> is the end of the cut

    All the hyperlink in between this "Episode name" & "<div id="rightside">"
    can it be extract and run in a for loop for my this code

    **and the value of each hyperlink is replace at the "EACH_LINK[ARRAY]"**

    for amount of hyperlinks
    {
    VERSION BUILD=8510617 RECORDER=FX
    TAB T=1
    URL GOTO=EACH_LINK[ARRAY]
    SAVEAS TYPE=CPL FOLDER=C:\savedpage FILE=+_{{!NOW:yyyy***d_hhnnss}}
    }

    **Thanks for helping !!**

    The html code is something like this



    <span class='st_sharethis_hcount' displaytext='ShareThis'></span>
    <script type="text/javascript"> var switchTo5x = true;</script>
    <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
    </div>

    <div class="clear">
     </div>

    <div style="text-align: center">
    <img src="/Content/images/download.png" style="vertical-align: middle; margin-top: -5px" /> 
    <a class="bigChar" style="font-size: 23px;" href="/DownloadCategory/galf">
    Click here to download all</a>
    </div>
    <div class="clear">
     </div>
    <table class="listing">
    <tr>
    <th width="85%">
    Page name
    </th>
    <th width="15%">
    Day Added
    </th>
    </tr>
    <tr style="height: 10px">
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-013?id=19881"
    title="View Category galf Page 013">
    galf Page 013</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-012?id=19880"
    title="View Category galf Page 012">
    galf Page 012</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-011?id=19879"
    title="View Category galf Page 011">
    galf Page 011</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-010?id=19878"
    title="View Category galf Page 010">
    galf Page 010</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-009?id=19877"
    title="View Category galf Page 009">
    galf Page 009</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-008?id=19876"
    title="View Category galf Page 008">
    galf Page 008</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-007?id=19875"
    title="View Category galf Page 007">
    galf Page 007</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-006?id=19882"
    title="View Category galf Page 006">
    galf Page 006</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-005?id=19874"
    title="View Category galf Page 005">
    galf Page 005</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-004?id=19873"
    title="View Category galf Page 004">
    galf Page 004</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-003?id=19872"
    title="View Category galf Page 003">
    galf Page 003</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-002?id=19871"
    title="View Category galf Page 002">
    galf Page 002</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    <tr>
    <td>
    <a href="/Category/galf/Page-001?id=19870"
    title="View Category galf Page 001">
    galf Page 001</a>
    </td>
    <td>
    1/12/2013
    </td>
    </tr>

    </table>

    </div>
    </div>
    </div>
    </div>
    <div id="rightside">
    <div class="rightBox">
    <div class="barTitle">
    Cover</div>
    <div class="barContent">
    <div class="arrow-general">
     </div>
    <div style="text-align: center">
    <img width="190px" height="250px" src="http://Category.com/Uploads/2942272.jpg" />
    </div>
    </div>
    </div>
    <div class="clear2">
    </div>
    <div class="rightBox">
    <div class="barTitle">
    Related Links</div>
    <div class="barContent">
    <div class="arrow-general">
     </div>

    <div>
    <img src="../../Content/images/bullet.png" /> <a href="/Category/galf/Page-014" title="View galf Page 014 online">galf 014</a><div class="clear" style="height:5px"></div>
    </div>
    </div>
    </div>
    <div class="clear2">
    </div>
    <div class="rightBox">
    <div class="barTitle">
    Comments</div>
    <div class="barContent">
    <div class="arrow-general">
     </div>
    <div>
    <div class="fb-comments" data-href="http://Category.com/Category/galf" data-num-posts="2"
    data-width="200" data-colorscheme="dark">
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div style="height: 30px" class="clear">
     </div>

    <!-- end div container -->
    <div class="clear">
     </div>
    <div class="clear">
     </div>
    <div class="clear">
     </div>


    And I wish to get the 12 hyperlinks between

    "Episode name" & "<div id="rightside">"


    Payment: $20 by Paypal

    Pm me the solution + your paypal detail
     
  2. baokyrox

    baokyrox BANNED BANNED

    Joined:
    Oct 10, 2008
    Messages:
    429
    Likes Received:
    34
    Upgraded offer to $25 usd by paypal
     
  3. baokyrox

    baokyrox BANNED BANNED

    Joined:
    Oct 10, 2008
    Messages:
    429
    Likes Received:
    34
    Offer upgraded to $35
     
  4. johnpup

    johnpup Regular Member

    Joined:
    Jan 31, 2013
    Messages:
    251
    Likes Received:
    31
    add me on skype: walcott911 thanks.
     
  5. xxMP3xx

    xxMP3xx Regular Member

    Joined:
    May 19, 2009
    Messages:
    368
    Likes Received:
    46
    Location:
    <?php return 'CPU'; ?>
    Job done in 1 hr, payment rec in 2 min :)

    Thanks.
     
  6. baokyrox

    baokyrox BANNED BANNED

    Joined:
    Oct 10, 2008
    Messages:
    429
    Likes Received:
    34
    Thanks for doing the job.