Welcome to openkapow Sign in | Join
in Search
.

Problems with Multi-Clipping

Last post 01-06-2007, 2:25 PM by allaf. 7 replies.
Sort Posts: Previous Next
  •  01-01-2007, 10:58 AM 7247

    Problems with Multi-Clipping

    I tried to build a web clip with a "for each" loop. The loop works fine, changing the iteration shows the different web parts I'd like to clip. After the "for each" step, I have a "Clip" step. Running the whole robot leaves me with only the clip from the first iteration, though.

    I don't know what I'm doing wrong. The file is here: http://service.openkapow.com/fxp/sonytest.clip.


    P.S.: Creating the same content as a RSS feed works fine. http://service.openkapow.com/fxp/sony2.rss

    Filed under: , ,
  •  01-02-2007, 12:05 AM 7257 in reply to 7247

    Re: Problems with Multi-Clipping

    In RSS and REST robots there are many instances of the output objects returned, one for each "Return Object" step. This makes For Each loops perfect for these types of robots, that way you can return a large set of data. Clipping robots works a bit differently though. Here the "End Clip" step is similar to the "Return Object" step in that it returns data (that is then displayed in the browser), but with one very important differance - it is only executed once and then that branch of the robot is finished. That means that For Each loops can not really be used in the way that you are using it in the sonytest robot.

    Instead try clipping the whole div named "cntCategoryLinks" since this div contains all the data that I think you are interested in showing in your clip.

    Happy New Year!
     


    "A robot on openkapow is worth two on the harddrive" - old saying

    WebHostNinja.com - price comparison for web hosting
    Digitalistic.com - mashup or die
    Filed under: ,
  •  01-02-2007, 3:05 PM 7278 in reply to 7257

    Re: Problems with Multi-Clipping

    Hi Andreas, thanks for your answer. I think I understand. I tried to introduce two branches like this http://service.openkapow.com/fxp/sonytest0.clip but this doesn't work either as I do not know how to set the correct test tag.

    BTW: Clipping the whole div would give the result, but I would like to learn how to clip things step by step to further work on the distinct clips.

    Happy 2007 to you, too!
     

    Filed under: , , ,
  •  01-03-2007, 2:30 AM 7284 in reply to 7278

    Re: Problems with Multi-Clipping

    I think you might make things more complicated than they are by building clipping robots "by hand" instead of using all the wizards available in the portlet view. Those wizards will help you create branches and set up rules etc, and they are very convenient. If you havent already then please take a look at this clipping tutorial.

    If you want to clip the info for each individual camera you still do this in one clip step. Just add several Tag Finders (see tutorial for more details) to this one clip step.

    I hoped this helps you out! 


    "A robot on openkapow is worth two on the harddrive" - old saying

    WebHostNinja.com - price comparison for web hosting
    Digitalistic.com - mashup or die
  •  01-03-2007, 5:15 AM 7292 in reply to 7284

    Re: Problems with Multi-Clipping

    The example in the tutorial clips three items out of a web page one by one and does not use a loop.

    I have the feeling that loops cannot be used in clipping robots. How does the portlet view help me in creating this loop?

    If anyone could show me a working example, this would be of great help. 

    Filed under: , , ,
  •  01-03-2007, 6:46 AM 7294 in reply to 7292

    Re: Problems with Multi-Clipping

    Sorry about my confusion (maybe it is the combination of lack of coffee and overdose of christmas food that makes my brain a bit mushy), but could you explain exactly what it is you want to do with your clipping robot? I do not think that loops is the way to go in any case, but to try to give a better idea of how to go forward I would like to know more about what you wanna do.

    "A robot on openkapow is worth two on the harddrive" - old saying

    WebHostNinja.com - price comparison for web hosting
    Digitalistic.com - mashup or die
  •  01-06-2007, 3:52 AM 7328 in reply to 7294

    Re: Problems with Multi-Clipping

    To learn about clipping robots, I tried to build the following: loop over all cameras from Sonys start page and create a table with Sony's descriptions at the left and Text found on Wikipedia on the right (or at least links to any existing Wikipedia articles).
    Filed under: ,
  •  01-06-2007, 2:25 PM 7331 in reply to 7328

    Re: Problems with Multi-Clipping

    Based upon your description here, it looks like you need to be building a REST rather than a CLIP robot...
View as RSS news feed in XML
.
Copyright 2006, 2007 KapowTech.com All Rights Reserved Company | Contact | Terms | Privacy