Home > Christianity, Programming > Daily Scripture Reading

Daily Scripture Reading

I’ve been trying to follow the Orthodox lectionary readings with my family each morning at breakfast. Often times I forget or don’t have time to go look them up. So I wrote this little script that goes out and gets them and prints them. I have an entry in my crontab file that runs this script at 6:30am each morning. Running this from cron requires that you have Xvfb installed. The crontab entry looks like:

30 6 * * * xvfb-run /home/brian/bin/scripture.py

Here is the scripture.py python script:


import feedparser
import os
import time

f = feedparser.parse('http://onlinechapel.goarch.org/daily-rss.asp')
for s in f['entries']:
    if 'epistle' in s.link or 'gospel' in s.link:
        os.system("firefox -P Brian -print '%s'" % s.link)

Using Firefox to print in this manner requires installing the Firefox Command Line Print extension.

You can follow the lectionary readings from the Saint Paul Orthodox Church website.

Categories: Christianity, Programming
  1. aplawson
    August 14, 2010 at 10:45 am


    Could you send me the CSS for this blog layout? I love the layout with the exception of wanting a header image. Mainly, I’m a developer and like to be able to quote things aside from having being able to provide code BLOCKS with line numbers. That’s just sweet! Let me know?

  2. August 14, 2010 at 11:09 am

    This is a stock theme in WordPress. You can find it here: http://wordpress.org/extend/themes/inove

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: