extract dynamical prices
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:
CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:
CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
-
- 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)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a 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)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a 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)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...