pictuga / morss

Get full text RSS feeds
https://morss.it/
GNU Affero General Public License v3.0
621 stars 75 forks source link

Trying to add item_date xpath #45

Open Djeremaille opened 4 years ago

Djeremaille commented 4 years ago

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?

pictuga commented 4 years ago

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: