Giter Site home page Giter Site logo

picchioni / genrss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amsehili/genrss

0.0 1.0 0.0 46 KB

genRSS generates a RSS 2 feed from media files in a directory

Home Page: https://github.com/amsehili/genRSS

License: GNU General Public License v3.0

Python 100.00%

genrss's Introduction

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

python -m SimpleHTTPServer

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

python -m SimpleHTTPServer 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 SimpleHTTPServerer 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 media files in "media"

python genRSS.py -d test/media --host localhost:8080 --title "My Podcast" --description "My Podcast Description"  -o feed-1.rss

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

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

python genRSS.py --recursive -d test/media --host localhost:8080 --title "My Podcast" --description "My Podcast Description" -o feed-1.rss

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

python genRSS.py -e "mp3,ogg" -d test/media --host localhost:8080 --title "My Podcast" --description "My Podcast Description" --recursive -o feed-1.rss

Access your poscast from another machine/device:

localhost:8080 are you host name and your http server port respectively. This pair is automatically used by genRSS.py 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:

python genRSS.py -e "mp3,ogg" -d test/media --host 192.168.1.5:8080 --title "My Podcast" --description "My Podcast Description" --recursive -o feed-1.rss

Tests

To run tests type:

python genRSS.py --run-tests

or in verbose mode:

python genRSS.py --run-tests -v

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

genrss's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.