search google, open all the results

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
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
imacronev
Posts: 4
Joined: Mon Feb 29, 2016 12:54 am

search google, open all the results

Post by imacronev » Mon Feb 29, 2016 1:20 am

I want to give an imacro program a keyword, and then it searches google and opens all 10 or 100 results links. I think I can figure the rest out, but not the links 1, 2, 3, etc.

If I record it I get ATTR text, like this:

Code: Select all

TAG POS=1 TYPE=A ATTR=TXT:Cell<SP>Phone<SP>Data<SP>Plans<SP>|<SP>Best<SP>Data<SP>Deals*
TAG POS=1 TYPE=A ATTR=TXT:Compare<SP>Cell<SP>Phone<SP>Plans<SP>|<SP>Verizon<SP>Wireles*
TAG POS=1 TYPE=A ATTR=TXT:Unlimited<SP>Data<SP>Plans<SP>For<SP>Cell<SP>Phones<SP>-*
TAG POS=1 TYPE=A ATTR=TXT:Cell<SP>Phone<SP>Plans<SP>|<SP>Cheap<SP>Cell<SP>Phone<SP>Pla*
But I want to just give it 1 through 10, or use a loop.

The trouble is, they are all POS=1. Is there a different way to address the 10 links on the Google search results, instead of the specific text ATTR? Like, can I tell imacro to open the next link, then the next one, and so on? Or can I say the first POS=1, then the next POS=1?

thanks
IrishMacro
Posts: 135
Joined: Wed Nov 03, 2010 12:27 pm

Re: search google, open all the results

Post by IrishMacro » Mon Feb 29, 2016 11:57 am

You can try using HREF instead of linktext to find the link
http://wiki.imacros.net/TAG#Following_links

To find the next link after a link you can use POS=R1 (relative postioning)
http://wiki.imacros.net/TAG_parameters_ ... ositioning
Firefox free plugin, last version
Win7
imacronev
Posts: 4
Joined: Mon Feb 29, 2016 12:54 am

Re: search google, open all the results

Post by imacronev » Mon Sep 05, 2016 9:12 am

thank you
Post Reply