First of all, I really love your products, and have bought the hosted version for both Full-Text and Feed-Creator Been testing it both with great results.
I saw on the latest release the following:
- New parameter: item_date - CSS selector to pick out item dates (extract.php endpoint)
How can we use this?
In particular, I’m using Full-Text-RSS on the Engadget.com website, just to grab some specific articles, the description extraction goes ok, but I cant get the articles date. How can it be done? (extract dates from articles) can you provide an example?
thanks a lot!!
Thanks Diogo, glad you’re finding the software useful!
About your question, the item_date parameter was added for our Feed Creator tool - so it’s intended to be used for sites which don’t already offer a feed. Here’s an example of how it works (have a look at the ‘Submitted parameters’ section):
It has to be used in combination with the item parameter. The item parameter is used to tell Feed Creator which elements contain the information (URL, title, date, description) of each news item. The item_title, item_date, item_url, item_desc parameters are then applied within the context of the item element to select and extract these elements.
However, your question suggests you’re using Full-Text RSS, not Feed Creator, on a site that already has a feed. In this case, the original date in the original feed should be preserved by Full-Text RSS. At least it is if I try putting http://www.engadget.com/rss.xml through Full-Text RSS.
If you’re working with a feed that doesn’t include item dates. You can tell Full-Text RSS to extract this from the source article when it’s pulling out the body. To do that, you need to create or edit the site config file associated with the site and tell it which element holds the date value. See http://help.fivefilters.org/customer/portal/articles/223153-site-patterns for more information on how to do this.
Hope that’s some help.
I tried to add the date parameter to http://createfeed.fivefilters.org/extract.php?url=https%3A%2F%2Fwww.fma.govt.nz%2Fnews-and-resources%2F&in_id_or_class=latestitems-title&url_contains= but it doesn’t work. The time class on the page I am trying to generate feed for https://www.fma.govt.nz/news-and-resources/ is “latestitems-date”.
I look forward to hearing back from you soon.
When you want to include the date, you need to use the
item parameter to select elements holding individual news items.
You can then use the
item_date parameter to select the date element within.
In this case, something like this:
Submitted parameters (
[url] => https://www.fma.govt.nz/news-and-resources/
[item] => .latestitems-item
[item_date] => .latestitems-date
We don’t show the date in the preview, but if you view the RSS feed, you’ll see it there.