Extracting Text from Input Class

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
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
sleepysentry
Posts: 5
Joined: Thu Feb 19, 2015 3:22 pm
Contact:

Extracting Text from Input Class

Post by sleepysentry » Thu Feb 14, 2019 8:02 pm

Code: Select all

<div class="quantumWizTextinputPaperinputInputArea"><input class="quantumWizTextinputPaperinputInput exportInput" jsname="YPqjbf" autocomplete="off" tabindex="0" aria-label="Link for sharing" readonly="" data-initial-value="https://goo.gl/forms/gzKJds4CaAnZm6bA2" badinput="false" dir="ltr" type="text"></div>
I have a page with the code above and would like to extract the text after "data-initial-value=" ie "https://goo.gl/forms/gzKJds4CaAnZm6bA2"

I am using this code below, but it always returns "EANF". How can I change this so that I always get the link-- ie https://goo.gl/forms/gzKJds4CaAnZm6bA2? Additionally, how do I save this result to a CSV file?

Here's the code I have now:

Code: Select all

TAG POS=4 TYPE=INPUT ATTR=CLASS:data-initial-value EXTRACT=HTM
Post Reply