Skip to content

abrioy/rss_merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rss_merge

A python script to merge RSS feeds

How to run : python rss_merge.py sampleInput.json -o sampleOutput.rss

The input file contains a list of the feeds to merge and some metadata, you can specify as many feeds as you want to be merged into one. Most of these feeds are optional, see the file sampleInput.json for a working example.

{
	"title": Name of the output feed in the metadata
	"link": URL the output feed is pointing to
	"summary": Summary of the file in the RSS metadata
	"size": Max number of elements in the output feed

	"feeds":[
		{
			"name": Name of the input feed

			"type": Type of the input feed (see below)
			"source": source URL of the input feed

			"size": Max number of items from this feed that will be included in the final merged feed
			
			"prefix": Prefix to add in front of the title of every element
			
			"regex": { Runs a regex replacement on the title of each element
				"pattern": 
				"replace": 
			},
			"filter": Filer the elements of the feed, including only thoses matching this regex
		},

		...
	]
}

The type of a feed changes the way the source field is handled:

About

Python script to merge RSS feed, includes direct support for youtube channels and playlists

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages