extract data from ATTR which is generated

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.

Moderators: Community Moderators, iMacros Moderators

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.

extract data from ATTR which is generated

by fire77 on Thu Jul 14, 2016 6:17 am

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
fire77
 
Posts: 2
Joined: Mon Jul 11, 2016 2:02 pm

Re: extract data from ATTR which is generated

by iimfun on Wed Jul 20, 2016 12: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}}
iimfun
 
Posts: 239
Joined: Tue Jul 19, 2016 6:06 am

Re: extract data from ATTR which is generated

by fire77 on Tue Aug 02, 2016 6:54 am

Thank you so much! combined with saving to csv this worked perfectly.
fire77
 
Posts: 2
Joined: Mon Jul 11, 2016 2:02 pm


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 4 guests

-->