Plugin: Full Feed for newspaper sites (updated 2013-04-19)

Post plugins and custom CSS snippets here
craywolf
Mr. Awesome
Posts: 97
Joined: 19 Mar 2013, 18:07

Plugin: Full Feed for newspaper sites (updated 2013-04-19)

Postby craywolf » 26 Mar 2013, 20:31

NOTE: If you are using TT-RSS 1.7.9 and up, you must update to version 1.2 of this plugin. see this announcement for why. Version 1.2 is also confirmed to work with TT-RSS 1.7.8, and may/should work with prior versions.

Get notified of updates to this extension - Subscribe to this thread in TT-RSS by using this feed URL!

ABOUT:

This plugin will turn any feed from a site using Movable Type Enterprise (which a lot of newspaper sites seem to use) into a full-article feed.
(Built on antiKk's comic feed plugin.)

It does so by matching if $article["link"] includes "/index.ssf/", it then fetches the link URL contents, and replaces the RSS article content with the "entry-content" DIV from the fetched page.

PLEASE NOTE: This plugin will increase load times (and bandwidth use on your host) when subscribing to a matching feed, or when a matching feed has many new updates, because it goes out and fetches the entire article HTML for every new entry.

Tested with:
  • NOLA.com
  • NJ.com
  • Cleveland.com
  • MassLive.com
  • OregonLive.com

TO INSTALL:

Unzip into /plugins and enable af_newspapers in Preferences.

CHANGELOG:

Code: Select all

/*
 * CHANGELOG:
 * Version 1.2 by craywolf 2013-04-19 @ 14:00 GMT
 *      - Added api_version() call
 *      - Removed cruft
 * Version 1.1 by craywolf 2013-04-17 @ 15:22 GMT
 *      - Added fix for removal of $this->link in 1.7.9
 *      - Added "more info" link to about()
 * Version 1.0 by craywolf 2013-03-26 @ 16:17 GMT
 *      - Initial release
 */


TODO:

  • Clean up imported articles by removing irrelevant sub-divs
Attachments
af_newspapers-1.2.zip
MD5SUM: 642b2634c07698be2c67f5c4c2570ce3
(1.15 KiB) Downloaded 1801 times
af_newspapers-1.1.zip
MD5SUM: 44a1a20601907e6a98e0645bf082f016
(1.17 KiB) Downloaded 182 times
af_newspapers-1.0.zip
MD5SUM: 1e82f5deff6d15bbce92633431e968c0
(1.05 KiB) Downloaded 389 times
Last edited by craywolf on 19 Apr 2013, 18:25, edited 5 times in total.

craywolf
Mr. Awesome
Posts: 97
Joined: 19 Mar 2013, 18:07

Re: Plugin: Full Feed for newspaper websites (updated for 1.

Postby craywolf » 17 Apr 2013, 19:27

Plugin has been updated for the changes to 1.7.9 announced here. Please update to version 1.1 of the plugin.
Last edited by craywolf on 19 Apr 2013, 18:20, edited 1 time in total.

craywolf
Mr. Awesome
Posts: 97
Joined: 19 Mar 2013, 18:07

Re: Plugin: Full Feed for newspaper sites (updated 2013-04-1

Postby craywolf » 19 Apr 2013, 18:16

Updated to version 1.2 to add api_version() call.

Download link: download/file.php?id=348


Return to “Themes and plugins”

Who is online

Users browsing this forum: No registered users and 2 guests