How to Extract Text from HTML

Discussions and Tech Support specific to the iMacros Firefox add-on.
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
wesleylex
Posts: 8
Joined: Mon Jan 25, 2016 7:59 pm
Location: Brazil

How to Extract Text from HTML

Post by wesleylex » Sun Jul 01, 2018 8:39 pm

imacro does not write a text by clicking
in it but it is in the html of the site how do I extract it

I wanted to extract the number 9572160621092 this html code

Code: Select all

<div data-canvas-width="96.37333333333333" style="left: 261.242px; top: 192.275px; font-size: 13.3333px; font-family: sans-serif; transform: scaleX(1.05905);">9572160621092</div>
which command should I use to extract this number

remembering that this number changes more HTML is always the same
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: How to Extract Text from HTML

Post by chivracq » Sun Jul 01, 2018 9:24 pm

wesleylex wrote:imacro does not write a text by clicking
in it but it is in the html of the site how do I extract it

I wanted to extract the number 9572160621092 this html code

Code: Select all

<div data-canvas-width="96.37333333333333" style="left: 261.242px; top: 192.275px; font-size: 13.3333px; font-family: sans-serif; transform: scaleX(1.05905);">9572160621092</div>
which command should I use to extract this number

remembering that this number changes more HTML is always the same
CIM...! :mrgreen: (Read my Sig...)

'EXTRACT=TXT' on the 'DIV' should "do the Job" I would think..., using any other Attribute(s) than the 'TXT' Attr if it is changing, or using Wildcard(s) if some part remains constant..., and maybe combined with Relative Positioning...

Or 'EXTRACT=HTM' on that same 'DIV' (or any Containing 'DIV' at some higher Level) + 'EVAL()' but that's a bit less straightforward...

>>>

Hum and I don't think your Qt has anything specific to iMacros for FF (especially if you don't mention your FCI), this Thread belonged to the 'General' Sub-Forum...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Post Reply