Extract a hidden input ?

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
Prospero
Posts: 5
Joined: Sat Dec 05, 2015 8:54 pm

Extract a hidden input ?

Post by Prospero » Wed Sep 28, 2022 3:04 pm

Hello friends, I hope I can explain well what I need to do to see if you can help me.

URL: https://demo.imacros.net/Automate/Extract2

Part of the code

Code: Select all

<input type="hidden" name="Hidden1" value="hiddenvalue1">
in the html code there is a hidden input and I need the value. VALUE = hiddenvalue1

MY CODE:

Code: Select all

VERSION BUILD=1011 RECORDER=CR
URL GOTO=https://demo.imacros.net/Automate/Extract2
TAG POS=1 TYPE=INPUT:HIDDEN FORM=NAME:form1 ATTR=NAME:Hidden1 CONTENT=* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}  
For some unknown reason it can't find it. what do you think is the solution, or where can I read about extraction on hidden input.
SyntaxError: wrong format of TAG command at line 3
Thank you very much, I am attentive to your comments. Greetings.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Extract a hidden input ?

Post by chivracq » Wed Sep 28, 2022 4:00 pm

Prospero wrote:
Wed Sep 28, 2022 3:04 pm
Hello friends, I hope I can explain well what I need to do to see if you can help me.

URL: https://demo.imacros.net/Automate/Extract2

Part of the code

Code: Select all

<input type="hidden" name="Hidden1" value="hiddenvalue1">
in the html code there is a hidden input and I need the value. VALUE = hiddenvalue1

MY CODE:

Code: Select all

VERSION BUILD=1011 RECORDER=CR
URL GOTO=https://demo.imacros.net/Automate/Extract2
TAG POS=1 TYPE=INPUT:HIDDEN FORM=NAME:form1 ATTR=NAME:Hidden1 CONTENT=* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}  
For some unknown reason it can't find it. what do you think is the solution, or where can I read about extraction on hidden input.
SyntaxError: wrong format of TAG command at line 3
Thank you very much, I am attentive to your comments. Greetings.

Ah...!?, OK, I was wondering why you opened a 2nd Thread instead of following up in the previous one that you just opened 1 hour ago, but now I understand: You reported that previous Thread to have it deleted, (I would have refused btw...), but the Forum Admin was "quicker" than me to see and handle your Report, and they refused to delete that Thread as well... So now we have 2 very similar Threads, a bit "messy", grrr...!, but OK, never mind... :|

Then well, "I am attentive to your comments.", I asked you to read the Forum Rules and to mention your FCI when you open a Thread, but nope...! :roll:

And I already gave you the Solution in your previous Thread, it's the exact same Solution...! :P :?
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Post Reply