morss icon indicating copy to clipboard operation
morss copied to clipboard

Trying to add item_date xpath

Open Djeremaille opened this issue 4 years ago • 1 comments

Hi! I managed to obtain a nice rss from the result of search. This is a list of files. The problem is that there is an added date that i can't manage to add. I don't know nothing about Xpath...

Here is the date xpath of the 8th file (tr[8])

:item_time=||html|body|div[9]|main|div|div|section[3]|div|table|tbody|tr[8]|td[5]|div/

How can I write this so each item have its own date?

Djeremaille avatar Aug 31 '20 09:08 Djeremaille

items must match the items as a whole (i.e. including the title, description (if any), link, date, etc.). This must be an absolute xpath rule (i.e. starting with /)

item_link, item_title, item_content, item_time must be relative (i.e. start with ./) to the items matched by items

In your case, it's hard to say without the link, but :items=||table|tbody|trand :item_time=.|td[5]|div (or sth similar) might work

Todo:

  • [ ] Add the above comments to the README

pictuga avatar Sep 01 '20 08:09 pictuga