Extracting text from a readonly textbox that changes?

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.

Extracting text from a readonly textbox that changes?

by Kloud on Fri Apr 08, 2016 2:02 am

Hi, I'm trying to create a macro where I can loop it and every certain number of minutes it extracts and saves the value. I'm having some trouble because when I select the textbox and attempt to add the command, it'll fail to do it if the number changes. (Which it's supposed to.)

Code: Select all
TAG POS=1 TYPE=INPUT:TEXT ATTR=VALUE:0.00001839 EXTRACT=TXT


this is the line of code that is created when i try to perform the "extract text" task. Whenever I try to repeat the entire process it won't save the file afterwards because it can't find the value it's looking for, when I just want it to look in that box and take whatever value is in there.

I tried doing ATTR=VALUE:* but it still didn't save as either TXT or CSV.. Here is the full code.

Code: Select all
VERSION BUILD=10022823
TAB T=1
TAB CLOSEALLOTHERS
PROXY ADDRESS=[Censored]
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_PAGE 120
URL GOTO=https://www.satoshidice.com/?secret=[Censored]
TAG POS=1 TYPE=LI ATTR=TXT:Invest
WAIT SECONDS=20
'text input activated
TAG POS=1 TYPE=INPUT:TEXT ATTR=VALUE:* EXTRACT=TXT
WAIT SECONDS=2
SAVEAS TYPE=EXTRACT FOLDER=* FILE=Extract_{{!NOW:ddmmyy_hhnnss}}.csv


Any help would be greatly appreciated, thanks.
Kloud
 
Posts: 1
Joined: Fri Apr 08, 2016 1:29 am

Re: Extracting text from a readonly textbox that changes?

by Cobra99 on Tue Apr 12, 2016 3:40 pm

Did you try other recording modes?
VERSION BUILD=8820413 RECORDER=FX, WIN7 64-bit SK, Pale Moon 25.8.1(x86)
FCIM here http://forum.imacros.net/viewtopic.php?f=20&t=3331
Cobra99
 
Posts: 64
Joined: Wed Dec 24, 2014 5:17 pm


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 3 guests

cron
-->