How do I extract text I just inputted into a form?

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

Moderators: Marcia, iOpus, Hannes, iOpus, Tech Support, Tom, iOpus

How do I extract text I just inputted into a form?

Postby carvel on Tue Jul 13, 2010 11:51 am

I'm using a .csv file to loop through and insert names into a form. I would also like to extract that name that was just entered into the form. That way, when I extract the result on the next page, I can have a column with the name and a corresponding column with the result. (Unfortunately, the result page doesn't give the intial name input, otherwise it would be easier.)

Here is my line for inputting the name:

TAG POS=1 TYPE=TEXTAREA FORM=ID:formControl ATTR=ID:RC_TermsItem_InTxt CONTENT={{!COL1}}

How could I edit this to also extract the name - here represented by {{!COL1}}, which I get from the .csv file.

Thanks
carvel
 
Posts: 5
Joined: Tue Jul 13, 2010 11:41 am

Re: How do I extract text I just inputted into a form?

Postby Tom, iOpus on Wed Jul 14, 2010 8:57 am

Hi Carvel,

Have you tried the following?

Code: Select all
TAG POS=1 TYPE=TEXTAREA FORM=ID:formControl ATTR=ID:RC_TermsItem_InTxt CONTENT={{!COL1}}
TAG POS=1 TYPE=TEXTAREA FORM=ID:formControl ATTR=ID:RC_TermsItem_InTxt EXTRACT=TXT
Regards,

Tom, iOpus Support
Tom, iOpus
 
Posts: 445
Joined: Mon May 31, 2010 9:59 am

Re: How do I extract text I just inputted into a form?

Postby carvel on Wed Jul 14, 2010 2:31 pm

Thanks Tom. I tried that and another variation:

TAG POS=1 TYPE=TEXTAREA FORM=ID:formControl ATTR=ID:RC_TermsItem_InTxt&&TXT:* EXTRACT=TXT

But just can't get it to work. Never fear though - the webpage contains many frames and other input forms. So I just had the macro paste the value into another text area on the page and then I extracted from that, then I went to my text area of interest, had the macro paste the value and then submitted that form. It's a bit of a workaround and maybe not the most elegant solution but I got the result I wanted. Thanks again and cheers! :)
carvel
 
Posts: 5
Joined: Tue Jul 13, 2010 11:41 am


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 2 guests