Receiving only one result

Hey!

I want to monitor this site, but when I enter items-container in the id or class attribute field on the feed creator main page, then only one result is shown.

Is this a bug or by design?

Best wishes!

Hi there, in_id_or_class should be used to specify the container for each item, not the container for all items.

For example, for the given HTML:

<div class="items-container">
   <div class="item"><a href="article1.html">Item 1</a></div>
   <div class="item"><a href="article2.html">Item 2</a></div>
   <div class="item"><a href="article3.html">Item 3</a></div>
</div>

in_id_or_class should be ‘item’ not ‘items-container’

For the page you supplied, however, Feed Creator will still return only one item because the links in the HTML all have the same title: ‘Read more’ so you can combine it with &unique_title=0:

http://createfeed.fivefilters.org/index.php?url=http%3A%2F%2Fwww.index1520.com%2Fnews&in_id_or_class=item&unique_title=0&action=Preview#results

In this particular example, if you want more information in the output, e.g. title and description, the markup requires that you use the more advanced parameters of Feed Creator: item, and the associated item_title, item_url.

1 Like

Thank you for your swift and helpful reply!

In my case the title comes after the 2nd p, but I’m only able to define the “first p”: http://createfeed.fivefilters.org/index.php?url=http%3A%2F%2Fwww.index1520.com%2Fnews&item=.item&item_title=p&item_desc=p&unique_title=0&action=Preview#results

How would the proper command for the “second p” for the title look like?

Hi, you can try this:

p[2]

http://createfeed.fivefilters.org/index.php?url=http%3A%2F%2Fwww.index1520.com%2Fnews&item=.item&item_title=p[2]&item_desc=p&unique_title=0&action=Preview#results

1 Like

Many hugs, many thanks :slight_smile:

1 Like