ttrss_plugin-feediron
ttrss_plugin-feediron copied to clipboard
Reuse site config from fivefilters site-config?
Just an idea/feature request: Would it be possible to convert site-configs from https://github.com/fivefilters/ftr-site-config?
These already contain a lot of sites and very well made settings.
I don't see why we couldn't, it looks to be a rather simple format that has a fair amount in common with our project. https://help.fivefilters.org/full-text-rss/site-patterns.html#pattern-format
- [x]
body
is a simple xpath - [x]
strip
is just a cleanup xpath - [x]
strip_id_or_class
could be converted to a cleanup xpath - [x]
strip_image_src
could be converted to a cleanup xpath - [x]
tidy
Boolean aligns with our own tidy option - [x] single_page_link is
multipage
withrecursive
set to false - [x]
next_page_link
ismultipage
withrecursive
set to true - [x]
replace_string
ismodify
withreplace
- [x] title,
date
andauthor
can probably be ignored - [ ]
prune
incompatible with our set-up - [ ]
autodetect_on_failure
incompatible with our set-up
Awesome idea, thanks for sharing @kossmoboleat. I will reuse these on other projects as well.
Btw: Any progress on this?
@GoodSoulGermany I had written a very basic parser but lost my work. But that was fairly simple to do. The difficulty is figuring out how to elegantly display the ability to add said filters.
I was already thinking of adding a category drop-down to the configuration tab's recipe import, so I might just stick it there.
*Edit: Although it is over 1000 entry's long so some form of search may be necessary
Work started, with the parser finished: https://github.com/feediron/ttrss_plugin-feediron/blob/dev/preftab/fi_fivefilters.php
Just need to integrate it with the recipe manager
cookies/headers support needs to be added as part of the retriever work https://github.com/feediron/ttrss_plugin-feediron/issues/44#issuecomment-870736101