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 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.
Post Reply
sleepysentry
Posts: 5
Joined: Thu Feb 19, 2015 3:22 pm

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