ttrss_plugin-feediron icon indicating copy to clipboard operation
ttrss_plugin-feediron copied to clipboard

Reuse site config from fivefilters site-config?

Open kossmoboleat opened this issue 4 years ago • 5 comments

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.

kossmoboleat avatar May 12 '20 18:05 kossmoboleat

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 with recursive set to false
  • [x] next_page_link is multipage with recursive set to true
  • [x] replace_string is modify with replace
  • [x] title, date and author can probably be ignored
  • [ ] prune incompatible with our set-up
  • [ ] autodetect_on_failure incompatible with our set-up

dugite-code avatar May 13 '20 01:05 dugite-code

Awesome idea, thanks for sharing @kossmoboleat. I will reuse these on other projects as well.

Btw: Any progress on this?

GoodSoulGermany avatar Aug 17 '20 17:08 GoodSoulGermany

@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

dugite-code avatar Aug 19 '20 03:08 dugite-code

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

dugite-code avatar Aug 28 '20 07:08 dugite-code

cookies/headers support needs to be added as part of the retriever work https://github.com/feediron/ttrss_plugin-feediron/issues/44#issuecomment-870736101

dugite-code avatar Jun 30 '21 05:06 dugite-code