beginner questions

Discussions and Tech Support specific to the iMacros Firefox add-on.
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
shanee
Posts: 15
Joined: Fri Jun 22, 2007 5:15 pm

beginner questions

Post by shanee » Fri Jun 22, 2007 6:34 pm

Hello, I just recently downloaded the newest version of iMacros for Firefox and am trying to create a macro to save all my friend IDs from myspace.

I think I have most of it worked out, but Im wondering if there is any way to repeat this process for however many number of pages there are. Here is what I have now.

Thank you for looking.

Code: Select all

VERSION BUILD=6000522 RECORDER=FX
SET !EXTRACT_TEST_POPUP NO
TAB T=1

SET !VAR1 00000000

URL GOTO=http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid={{!VAR1}}

'FINDS AND SELECTS THE view all friends LINK
TAG POS=1 TYPE=A ATTR=HREF:*viewfriends&friendID=*

'SETS A STARTING POINT RIGHT BEFORE THE TABLE OF FRIENDS
TAG POS=1 TYPE=TD ATTR=class:friends_ItemTemplate

'BEGINS EXTRACTING FRIEND ADDRESSES
TAG POS=R1 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R3 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R5 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R7 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R9 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R11 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R13 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R15 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R17 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R19 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R21 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R23 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R25 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R27 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R29 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R31 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R33 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R35 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R37 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R39 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R41 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R43 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R45 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R47 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R49 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R51 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R53 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R55 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R57 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R59 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R61 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R63 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R65 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R67 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R69 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R71 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R73 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R75 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R77 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF
TAG POS=R79 TYPE=A ATTR=HREF:*viewprofile&friendid=* EXTRACT=HREF

'CLICKS THE NEXT LINK TO GO TO THE NEXT PAGE OF FRIENDS
TAG POS=1 TYPE=A ATTR=TXT:Next<SP>›


SAVEAS TYPE=EXTRACT FOLDER=C:\Documents and Settings\user\Desktop FILE=friends.csv
shanee
Posts: 15
Joined: Fri Jun 22, 2007 5:15 pm

Post by shanee » Sun Jun 24, 2007 2:34 am

hmmm no way to loop this? Im pretty sure I can extract the number of pages from the top. Just dont know how to save that as a variable and loop the extraction that many times. Any ideas?
Post Reply