Problems with LOOP function

Discussions and Tech Support specific to the iMacros for Chrome extension.
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
user001
Posts: 10
Joined: Wed Jul 27, 2016 10:45 pm

Problems with LOOP function

Post by user001 » Tue Sep 20, 2016 3:51 pm

I have some troubles with my iMacros LOOP. The plan is to go to this website, search for a keyword and wait for the list of results. For example shoes See this link. See the saved HTML site

file:///Users/dave/Downloads/Schuhe%20eBay%20Kleinanzeigen.webarchive

My idea is to click on the first result and extract this to a csv file (cvs file is already set up and works fine. Once on the item page I want to extract the description / beschreibung and the URL which both works fine so far. See this:

file:///Users/dave/Downloads/description%20page.webarchive

Then go back and repeat the same steps for x amount of results.

The problem is that I can´t find the right code to extract the first result and loop through the rest of the results + extract each of them.

This is my code so far:

VERSION BUILD=9030808 RECORDER=FX
TAB T=1
SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES
URL GOTO=https://www.ebay-kleinanzeigen.de/s-anz ... 81-19-3157

**This should be the LOOP and titel extraction part***

**This is the part where the description and URL are extracted**
TAG POS=1 TYPE=P ATTR=ID:viewad-description-text EXTRACT=TXT
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=extraction.csv

Hope someone can help me with this :) Thanks a lot!
Post Reply