extract data from my page

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
bigman
Posts: 1
Joined: Tue Feb 13, 2018 10:43 pm

extract data from my page

Post by bigman » Tue Feb 13, 2018 10:54 pm

i'm having difficult to extract data from my website.

Code: Select all

<div class="class1">

  <img class="class2" src="...">

  <strong>

    <a href="..." target="_blank">text1</a>

  </strong>

  <br>

  <small>text2</small>

  <small class="class3">

    <br>

    <em>text3:</em>

    <span>

      <a href="..." class="class4">

        <small style="color: #aaa; font-size: 80%">text4</small>

        text5

      </a>
<a href="..." class="class4">

        <small style="color: #aaa; font-size: 80%">text4</small>

        text5

      </a>
<a href="..." class="class4">

        <small style="color: #aaa; font-size: 80%">text4</small>

        text5

      </a>

    </span>

    <br>

    <em>text6</em>

    <a href="..." class="class5">text7</a>,

    <a href="..." class="class5">text8</a>

  </small>

</div>
i need to extract where put the content text3. how I can extract text3 from the above situation?
User avatar
thecoder2012
Posts: 446
Joined: Sat Aug 15, 2015 5:14 pm
Location: Internet
Contact:

Re: extract data from my page

Post by thecoder2012 » Mon Apr 09, 2018 4:23 pm

bigman wrote:i need to extract where put the content text3. how I can extract text3 from the above situation?
Use your record function in your imacros, click on the element and add "EXTRACT=TXT".

Example 1:

Code: Select all

TAG POS=1 TYPE=EM ATTR=TXT:text3: EXTRACT=TXT
PROMPT {{!EXTRACT}}
Example 2:

Code: Select all

TAG POS=1 TYPE=EM ATTR=* EXTRACT=TXT
PROMPT {{!EXTRACT}}
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me! :idea:
Post Reply