extract data from ATTR which is generated

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
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
fire77
Posts: 2
Joined: Mon Jul 11, 2016 9:02 pm

extract data from ATTR which is generated

Post by fire77 » Thu Jul 14, 2016 1:17 pm

Hi Guys,
I'm trying to create a macro for creating a page in a web based admin / backend. Couldn't find anything in the forum search.
My stumbling block is copying the id number of the created page, once created it shows the newly generated id number but the field is the code number and not a constant value.

This is the from the recording
TAG POS=1 TYPE=SPAN ATTR=TXT:3658896

The next page I create will be for example.

TAG POS=1 TYPE=SPAN ATTR=TXT:3658899
iimfun
Posts: 239
Joined: Tue Jul 19, 2016 1:06 pm

Re: extract data from ATTR which is generated

Post by iimfun » Wed Jul 20, 2016 7:01 am

Taking into account the information you gave, I can recommend this code

Code: Select all

SEARCH SOURCE=REGEXP:"(<span.*(\d{7}).*<)" EXTRACT=$2
TAG POS=1 TYPE=SPAN ATTR=TXT:{{!EXTRACT}}
fire77
Posts: 2
Joined: Mon Jul 11, 2016 9:02 pm

Re: extract data from ATTR which is generated

Post by fire77 » Tue Aug 02, 2016 1:54 pm

Thank you so much! combined with saving to csv this worked perfectly.
Post Reply