[github] feediron

Post plugins and custom CSS snippets here
m42e
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 02 Dec 2014, 15:52

[github] feediron

Postby m42e » 07 Dec 2014, 11:37

Hi folks,

I used af_feedmod for a while, but missing some features. I improved it to "feediron".
You can get it here: https://github.com/m42e/ttrss_plugin-feediron

m42e
Last edited by m42e on 18 Dec 2014, 11:47, edited 1 time in total.

Rince
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 03 Sep 2013, 12:35

Re: feediron

Postby Rince » 15 Dec 2014, 11:09

Hi,

thanks for this plugin, it seems to have some features which are great, like split or combining multiple pages for articles ;)


could you help me using FeedIron with the ZEIT Online RSS-Feed? I'd love to not see the comments within the feed, only the article. Ideal would it be to have the whole article if it is splitted. Unfortunately, my HTML isn't well enough (or I can not look well enough into the code), because I can not see a div-container with only the article within...

Thank you in advance,

Hanno

Archie
Bear Rating Trainee
Bear Rating Trainee
Posts: 13
Joined: 28 Oct 2013, 18:04

Re: feediron

Postby Archie » 15 Dec 2014, 18:12

Try this:

Code: Select all

"zeit.de": {
    "type": "xpath",
    "xpath": "div[@id='main']",
    "multipage": {
        "xpath": "ol/li/a[contains(@id, 'seitenübersichtlinks')]",
        "append": true
    },
    "cleanup":["div[@id='comments']", "div[@class='articlefooter af']"], 
    "force_charset": "utf-8"
}

Rince
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 03 Sep 2013, 12:35

Re: feediron

Postby Rince » 16 Dec 2014, 00:09

Hmm, this sounds good, but...

I just tried to update the config for Feediron - just to discover that none of my configs apparently was saved.
I use tt-rss version 1.13 with PHP 5.3.27; are there any problems known?

Rince
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 03 Sep 2013, 12:35

Re: feediron

Postby Rince » 16 Dec 2014, 00:31

just a quick update: I have the same with tt-rss 1.15.3, so I guess it is not a tt-rss-problem...

levito
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 17 Mar 2013, 04:18

Re: feediron

Postby levito » 17 Dec 2014, 03:10

Make sure that your config JSON is valid. There are JSON validators out there in the web. I also couldn't save first, but then I saw I had a trailing comma.

And @m42e: Thanks so much for this awesome plugin! This is really useful, I love it!

Rince
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 03 Sep 2013, 12:35

Re: feediron

Postby Rince » 17 Dec 2014, 11:41

Hmm, I just validated my JSON with JSON Viewer - and yes, there was an error (missing comma). But now the JSON seems valid (see http://paste.debian.net/hidden/fb9d0e55/) but still it doesn't get saved... any hints?

Archie
Bear Rating Trainee
Bear Rating Trainee
Posts: 13
Joined: 28 Oct 2013, 18:04

Re: feediron

Postby Archie » 17 Dec 2014, 13:07

Remove the comma in

Code: Select all

"cleanup": [ "header", "footer" ],


By the way @m42e: Thanks for the plugin

Rince
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 03 Sep 2013, 12:35

Re: feediron

Postby Rince » 17 Dec 2014, 15:41

Thanks! That was really the problem. Don't know why JSON Viewer missed that one...

many thanks, it works now ;)

m42e
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 02 Dec 2014, 15:52

Re: feediron

Postby m42e » 18 Dec 2014, 09:31

Hi,

thanks for the interest. I've already merged some improvements and added an automatic formater and some basic error checking/information.
I think it is quite usefull. Please also consider to open an issue on github.com if you have troubles. I'll may miss some posts in this forum.

Bye,
m42e

m42e
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 02 Dec 2014, 15:52

Re: [github] feediron

Postby m42e » 23 Dec 2014, 00:46

Another Update:
  • Added detailed log output for test (And even more verbose output if you like).
  • Added possibility to publish your recipes (Create a pull request, and I'll merge it)
  • Added possiblity to simply add an available recipe directly from the github repository

I provided some recipes, If you'd like to share yours, add a pull request with a config like the samples provided. If you are not familiar with github, contact me here.

I think this makes it a lot simpler.

GoodSoul
Bear Rating Trainee
Bear Rating Trainee
Posts: 12
Joined: 17 Apr 2013, 12:54

Re: [github] feediron

Postby GoodSoul » 06 Feb 2015, 15:10

I moved all my af_feedmod settings to feediron! Thank you for this wonderful plugin. Keep rocking! :D

m42e
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 02 Dec 2014, 15:52

Re: [github] feediron

Postby m42e » 06 Feb 2015, 21:12

Thank you very much.

Just added the possibility to test a config directly in the test tab, without directly saving it in the main config.
And I added the ability to use readable (the php version) instead of self defined xpath/split.

GoodSoul
Bear Rating Trainee
Bear Rating Trainee
Posts: 12
Joined: 17 Apr 2013, 12:54

Re: [github] feediron

Postby GoodSoul » 06 Feb 2015, 22:20

I love the feature to test the ruleset first. Before feediron it was pain in the ass. :-)

m42e
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 02 Dec 2014, 15:52

Re: [github] feediron

Postby m42e » 06 Feb 2015, 23:45

Your Welcome. I hope the new possibility to test new configs makes it a painless process to test configurations.


Return to “Themes and plugins”

Who is online

Users browsing this forum: No registered users and 3 guests