cld21 wrote: ↑
Fri Nov 15, 2019 11:03 am
Thanks for reply. I am afriad I understand little of your post with all the acroynms. Sorry, new to all this. What is Free/PE?? I am using a free version of imacros if that's what you mean.
OK, yep, 'PE' means 'Personal Edition', as the 'Free' Version is "meant" for Home Users while "Xero Accounting Software" (for small Businesses) didn't "sound" like you are a "Home User" to me, but OK, never mind, I don't "care", I just want(ed) to know which Version exactly you are using...
Then OK, yep normal, concerning your "TAG POS=1 TYPE=DIV ATTR=TXT:* EXTRACT=TXT", this will extract the very first 'DIV' Element of the Page which is probably the Content of the whole Page as you've "removed" the whole 'TXT' Attribute.
In order to tag/identify (and extract) your "specific" Element, you need to use some other Attribute(s), like its Name/Id/Class (or a Combination of those), or try to keep some part(s) of the 'TXT' Attribute, but if for example you are trying to extract the Text of the "011:<SP>Daily<SP>food<SP>sales" Element, chances are stg like the following will still manage to uniquely identify and extract this Element:
Code: Select all
'TAG POS=1 TYPE=DIV ATTR=TXT:011:<SP>Daily<SP>food<SP>sales
TAG POS=1 TYPE=DIV ATTR=TXT:0*:<SP>* EXTRACT=TXT
+ Maybe have to "play" a bit with the "POS=1" to "POS=2" or "POS=3"...
Another way to identify your Element uniquely is to use 'Relative Positioning' as this Element probably has some "Label" associated with it that you could use as 'Anchor' with "TAG POS=R1" for your Element to Extract, then your "ATTR=TXT"*" would work.
Terms I use between Single Quotes can be used to search the Wiki and/or the Forum if you need more Info to understand the "Concept"...)
And the 'iMacros for CR' is indeed "definitely" not the correct Sub-Forum btw... Correct Sub-Forum to open this Thread would have been the 'Data Extraction' Sub-Forum, where your Thread will probably get moved to...
Try to select the "correct" Sub-Forum when you open a Thread, as several Advanced Users (and also Members of the TechSup Team) only check specific Sub-Forums, depending on our "Expertise"... And those Threads are also easier to find for other Users searching the Forum with a similar Case/Scenario/Qt...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...