It was tested on ttrss 1.7.9 and it is presumed that the af_feedmod in already enabled.
To use af_feedmod to expand the synopsis feed to a full article feed, you need two things, the first is an "array key" which is a unique identifier for the feed so that af_feedmod can distinguish the posts for this feed from other feeds, the second is an xpath for the article. This howto only covers a basic xpath, more complex ones can be created, but they are outside the scope of this howto.
Starting with http://msmvps.com/blogs/ehlo/default.aspx
The feed URL is http://msmvps.com/blogs/ehlo/rss.aspx, and an example full article URL is http://msmvps.com/blogs/ehlo/archive/20 ... 30371.aspx
After checking that none of my other feeds use ehlo in the URL, I will use ehlo as the "array key"
The xpath is a little more work however only a few moments work in Chrome for a basic xpath
Open an article page in Chrome, right click and choose "Inspect element".
Scroll down and expand through the element until you can identify the div that most accurately covers the article, for this example the ideal looks to be <div class="post"
Now you need to create the json to be posted to the FeedMod preferences tab.
Code: Select all
{
"ehlo": {
"type": "xpath",
"xpath": "div[@class='post']"
}
}
Now to add http://theoatmeal.com/
The published feed URL is http://feeds.feedburner.com/oatmealfeed and an example full article is http://theoatmeal.com/blog/tesla_museum_saved
To get XML from feedburner, append ?format=xml to the URL, so for the example above use http://feeds.feedburner.com/oatmealfeed?format=xml you might need similar changes from other feed providers.
For the "array key", I will use oatmealfeed
For the xpath the most appropriate divs would be <div id="comic" and <div id="blog" to cover both types of article
Now to create the json
Code: Select all
{
"oatmealfeed": {
"type": "xpath",
"xpath": "div[@id='comic'] | //div[@id='blog']"
}
}
As however a second definition is being added, it should look like the below
Code: Select all
{
"ehlo": {
"type": "xpath",
"xpath": "div[@class='post']"
},
"oatmealfeed": {
"type": "xpath",
"xpath": "div[@id='comic'] | //div[@id='blog']"
}
}
Many thanks to lotrfan who helped me to understand it and feader who provided some hints.