All Projects → amsehili → Genrss

amsehili / Genrss

Licence: mit
genRSS generates a RSS 2 feed from media files in a directory

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Genrss

Discord feedbot
Moved to https://gitlab.com/ffreiheit/discord_feedbot
Stars: ✭ 67 (-2.9%)
Mutual labels:  rss, feed
Mautic Rss To Email Bundle
Mautic plugin to send emails from RSS
Stars: ✭ 69 (+0%)
Mutual labels:  rss, feed
Feed
A RSS, Atom and JSON Feed generator for Node.js, making content syndication simple and intuitive! 🚀
Stars: ✭ 523 (+657.97%)
Mutual labels:  rss, feed
Picofeed
PHP library to parse and write RSS/Atom feeds
Stars: ✭ 439 (+536.23%)
Mutual labels:  rss, feed
Atoma
Atom, RSS and JSON feed parser for Python 3
Stars: ✭ 67 (-2.9%)
Mutual labels:  rss, feed
Jquery Rss
An easy-to-use rss plugin for jquery with templating.
Stars: ✭ 443 (+542.03%)
Mutual labels:  rss, feed
Laravel Feed
Easily generate RSS feeds
Stars: ✭ 573 (+730.43%)
Mutual labels:  rss, feed
Podcastgenerator
Open Source Podcast Publishing Solution since 2006
Stars: ✭ 344 (+398.55%)
Mutual labels:  rss, feed
Jong
🐍 💡 JOplin Notes Generator - project replaced by https://github.com/foxmask/yeoboseyo
Stars: ✭ 15 (-78.26%)
Mutual labels:  rss, feed
Miniflux Legacy
Minimalist RSS reader (version 1.x)
Stars: ✭ 897 (+1200%)
Mutual labels:  rss, feed
Front End Rss
📙 根据 RSS 抓取最新前端技术文章,来源:前端早读课、前端大全、前端之巅、淘宝前端、张鑫旭博客、凹凸实验室等
Stars: ✭ 418 (+505.8%)
Mutual labels:  rss, feed
Rssbot
Lightweight Telegram RSS bot for notifications only. 用于消息通知的轻量级 Telegram RSS 机器人
Stars: ✭ 952 (+1279.71%)
Mutual labels:  rss, feed
Hexo Generator Feed
Feed generator for Hexo.
Stars: ✭ 400 (+479.71%)
Mutual labels:  rss, feed
Python Feedgen
Python module to generate ATOM feeds, RSS feeds and Podcasts.
Stars: ✭ 501 (+626.09%)
Mutual labels:  rss, feed
Reader
Free and open source feeds reader, including all major Google Reader features
Stars: ✭ 347 (+402.9%)
Mutual labels:  rss, feed
News
📰 RSS/Atom feed reader
Stars: ✭ 524 (+659.42%)
Mutual labels:  rss, feed
Elixir Scrape
Scrape any website, article or RSS/Atom Feed with ease!
Stars: ✭ 306 (+343.48%)
Mutual labels:  rss, feed
Api.rss
RSS as RESTful. This service allows you to transform RSS feed into an awesome API.
Stars: ✭ 340 (+392.75%)
Mutual labels:  rss, feed
Liferea
Liferea (Linux Feed Reader), a news reader for GTK/GNOME
Stars: ✭ 612 (+786.96%)
Mutual labels:  rss, feed
Huginn
Create agents that monitor and act on your behalf. Your agents are standing by!
Stars: ✭ 33,694 (+48731.88%)
Mutual labels:  rss, feed

genRSS

What is genRSS?

genRSS takes a directory hosted on your website and generates an RSS 2 feed for all media files within the directory. It can operate recursively and look for media files in sub directories. Media files can also be restricted to a given set of extensions.

How to use genRSS?

Suppose you have a web server and a website hosted on that server. genRSS can be run on a given directory on the website to generate a feed from media files in the directory so you can access them with a podcast reader.

The following command launches an HTTP server that serves the current directory

python3 -m http.server

The server will be listening on port 8000 (default). You can also specify the port as an argument:

python3 -m http.server 8080

Go to a web browser and type: http://localhost:8080/. You should get a web page listing of all elements in current directory.

Place the test media directory (contains fake media files) in the directory served by Python HTTP Server and refresh the web page. You should now see and be able to browse the media folder.

Now place genRSS.py into the same directory and try the following examples.

Examples:

Generate a podcast from mp3 files in "test/media"

The following command generates a feed for mp3 files within test/media directory:

python3 genRSS.py -d test/media -e mp3 -t "My Podcast" -p "My Podcast Description" -o feed.rss

feed.rss should now be visible on the web page. You can visit it or open it with a podcast reader.

If no output file was given (option -o), the result would have been printed out on the standard output. It should look like:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
   <channel>
      <title>My Podcast</title>
      <description>My Podcast Description</description>
      <link>http://localhost:8080/</link>
      <item>
         <guid>http://localhost:8080/test/media/1.mp3</guid>
         <link>http://localhost:8080/test/media/1.mp3</link>
         <title>1.mp3</title>
         <description>1.mp3</description>
         <pubDate>Sat, 08 Apr 2017 21:19:52 +0000</pubDate>
         <enclosure url="http://localhost:8080/test/media/1.mp3" type="audio/mpeg" length="0"/>
      </item>
      <item>
         <guid>http://localhost:8080/test/media/2.MP3</guid>
         <link>http://localhost:8080/test/media/2.MP3</link>
         <title>2.MP3</title>
         <description>2.MP3</description>
         <pubDate>Fri, 07 Apr 2017 21:19:52 +0000</pubDate>
         <enclosure url="http://localhost:8080/test/media/2.MP3" type="audio/mpeg" length="0"/>
      </item>
   </channel>
</rss>

Generate a podcast from media files in "media" and its subdirectories

python3 genRSS.py -r -d test/media -t "Podcast Title" -p "Podcast Description" -o feed.rss

Generate a podcast from mp3 and ogg files in "media" and its subdirectories

python3 genRSS.py -r -e mp3,ogg -d test/media -t "Podcast Title" -p "Podcast Description" -o feed.rss

Access your podcast from another machine/device:

localhost:8080 are you host name and your http server port respectively. This pair is automatically used by genRSS as prefix for items in the generated podcast. Alternatively, you can use your machine's IP address instead of localhost. This is particularly useful if you want to access your podcast from another machine or a mobile device that share the same network.

Example:

python3 genRSS.py -e "mp3,ogg" -d test/media -H 192.168.1.5:1234 -t "Podcast Title" -p "Podcast Description" -r -o feed.rss

Tests

To run tests type:

python3 genRSS.py --run-tests

or in verbose mode:

python3 genRSS.py --run-tests -v

Wiki: https://github.com/amsehili/genRSS/wiki

License

MIT: https://github.com/amsehili/genRSS/blob/master/LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].