Extracting URLS from google search

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
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
jusslaww
Posts: 1
Joined: Sun Oct 12, 2014 3:46 am

Extracting URLS from google search

Post by jusslaww » Sun Oct 12, 2014 3:50 am

Hello,
I am hoping to extract urls based on a google searches of inputted data. My code is working, but too well. I'm getting a lot more data than just what's in the element.
Could anyone help me extract /just/ the url from the google search? Here's my code:

VERSION BUILD=10.1.25.8883
TAB T=1
TAB CLOSEALLOTHERS
SET !DATASOURCE accounts.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:gbqf ATTR=NAME:q CONTENT={{!COL1}}
TAG POS=1 TYPE=BUTTON:SUBMIT FORM=NAME:gbqf ATTR=NAME:btnG
TAG POS=1 TYPE=CITE ATTR=CLASS:_Rm EXTRACT=HREF

SAVEAS TYPE=TXT FOLDER=C:\Users\Jessi FILE=webdata.csv


Thanks in advance!
Post Reply