Liked Make your own automatic blogroll by Chris AldrichChris Aldrich ( via Boffosocko)

Make your own automatic blogroll

This is the script I use to generate a blogroll from my OPML:

#! /usr/bin/env python3
Parse OPML into markdown.
import sys
import re
from xml.etree import ElementTree

def main(fname):
    with open(fname, 'r', encoding='utf8') as fp:
        tree = ElementTree.parse(fp)
    for cat_node in tree.find('body').findall('outline'):
        print("\n## {}\n".format(cat_node.get('title')))
        for node in cat_node.findall('outline'):
            name = node.attrib.get('text')
            feedurl = node.attrib.get('xmlUrl')
            url = node.attrib.get('htmlUrl')
            print("* [{}]({}) ([feed]({}))".format(name, url, feedurl))

if __name__ == "__main__":

Liked Dr Sharon Flynn on Twitter (Twitter)

“So, today we launched the EDTL #IUADigEd project website. Thanks to @VishGain for all your help. Get a preview of our first newsletter, and sign up for the #IUADigEd community. @IUA_Academic”