extract dynamical prices
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
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
-
- Posts: 6
- Joined: Mon Jul 02, 2018 10:19 am
extract dynamical prices
Windows10/
iMacros v12 enterprise edition/
Good morning,
I've been searching for so long, and I found answers on the forum, but it doesn't work for my case...I hope someone could help me.
I need to extract products transport cost on a website (such as amazon), but it depends on the number of products ordered.
When I create my macro on iMacros, I just underline the price with my mouse : TAG POS=1 TYPE=P ATTR=TXT:5,76<SP>€
But if I run my macro again and that this price changed, it still indicate 5.76 euros.
My question : how to extract in a better way dynamic informations ? Then I want this information in a csv.
template of my extraction :
TAG POS=1 TYPE=P ATTR=TXT:5,76<SP>€ EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\UTILISATEUR\Documents\iMacros FILE=TSEfraisTransport1.csv
Best regards, Romane (from France)
iMacros v12 enterprise edition/
Good morning,
I've been searching for so long, and I found answers on the forum, but it doesn't work for my case...I hope someone could help me.
I need to extract products transport cost on a website (such as amazon), but it depends on the number of products ordered.
When I create my macro on iMacros, I just underline the price with my mouse : TAG POS=1 TYPE=P ATTR=TXT:5,76<SP>€
But if I run my macro again and that this price changed, it still indicate 5.76 euros.
My question : how to extract in a better way dynamic informations ? Then I want this information in a csv.
template of my extraction :
TAG POS=1 TYPE=P ATTR=TXT:5,76<SP>€ EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\UTILISATEUR\Documents\iMacros FILE=TSEfraisTransport1.csv
Best regards, Romane (from France)
-
- Posts: 6
- Joined: Mon Jul 02, 2018 10:19 am
Re: extract dynamical prices
I think I have to use the ID of those elements, but, I don't know how to get this ID...
Re: extract dynamical prices
Hum, so you moved from iMacros v10.0.2 for CR to iMB v12.0, ah-ah...!RomaneRomy wrote:Good morning,Code: Select all
Windows10/ iMacros v12 enterprise edition/
I've been searching for so long, and I found answers on the forum, but it doesn't work for my case...I hope someone could help me.
I need to extract products transport cost on a website (such as amazon), but it depends on the number of products ordered.
When I create my macro on iMacros, I just underline the price with my mouse :But if I run my macro again and that this price changed, it still indicate 5.76 euros.Code: Select all
TAG POS=1 TYPE=P ATTR=TXT:5,76<SP>€
My question : how to extract in a better way dynamic informations ? Then I want this information in a csv.
template of my extraction :Code: Select all
TAG POS=1 TYPE=P ATTR=TXT:5,76<SP>€ EXTRACT=TXT SAVEAS TYPE=EXTRACT FOLDER=C:\Users\UTILISATEUR\Documents\iMacros FILE=TSEfraisTransport1.csv
Best regards, Romane (from France)
Yep, if the Price (= the 'TXT' Attr) is Dynamic, you need to use some other Attribute(s) like the 'ID' or the 'Class' of that 'P' Element.RomaneRomy wrote:I think I have to use the ID of those elements, but, I don't know how to get this ID...
And maybe if it's the only Price on that Page, or if there are not "too many" similar 'P' Elements with a '€' Sign, and the Position of "your" Price on the Page doesn't change, the following might work:
Code: Select all
TAG POS=1 TYPE=P ATTR=TXT:*<SP>€ EXTRACT=TXT
You can identify that 'ID' and all other Attributes you could use from the Source Code, from an 'EXTRACT=HTM' on that Element or from the 'Full HTML' (= 'Expert Mode') Record Mode...
And you can as well probably use 'Relative Positioning', on the Name/Label of the Product for example as Anchor..., but it all depends on what will remain "Constant" on the Page and from the Logic in your Script...
- (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...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
-
- Posts: 6
- Joined: Mon Jul 02, 2018 10:19 am
Re: extract dynamical prices
Yeah, that's what I tried : TAG POS=1 TYPE=P ATTR=TXT:*<SP>€ EXTRACT=TXT
Thank you for the confirmation.
best regards.
Thank you for the confirmation.
best regards.
Re: extract dynamical prices
OK..., and does it work...?RomaneRomy wrote:Yeah, that's what I tried :Thank you for the confirmation.Code: Select all
TAG POS=1 TYPE=P ATTR=TXT:*<SP>€ EXTRACT=TXT
best regards.
"Confirmation"..., hum..., I cannot "confirm" anything as you didn't post the URL of the Page, "Confirmation" must come from you, ah-ah...!
- (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...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
-
- Posts: 6
- Joined: Mon Jul 02, 2018 10:19 am
Re: extract dynamical prices
It worked
But I think it would not work if the relative place of the price on the page change...
Actually I don't know how to make my macros still working if the "structure" moves.
Best regards,
But I think it would not work if the relative place of the price on the page change...
Actually I don't know how to make my macros still working if the "structure" moves.
Best regards,
Re: extract dynamical prices
Ah OK, that's a good start then...RomaneRomy wrote:It worked
But I think it would not work if the relative place of the price on the page change...
Actually I don't know how to make my macros still working if the "structure" moves.
Best regards,
Well, the "relative place" of the Price will not change from the 'Product Name' that Price relates to...
"Relative" is always... well... "relative" to stg..., that's why you need to use some Element for the Anchor that will not "move" or that iMacros can locate and tag without ambiguity... That's the "Purpose" of 'Relative Positioning'...!
I can't tell you more without looking at that Page and how it "behaves" and what changes and remains "constant"...
- (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...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...