#!/usr/bin/env python3 import sys import xml.etree.ElementTree as ET try: tree = ET.parse(sys.argv[1]) firstentry = tree.find('{http://www.w3.org/2005/Atom}entry') appliedarr = {} for child in firstentry: shortattr = child.tag.replace('{http://www.w3.org/2005/Atom}','') appliedarr.update({shortattr : child.text}) print('

'+appliedarr['title']+'

' +'

'+appliedarr['summary'] + '

Updated: ' + appliedarr['updated'] + ' ' +' Read More


') sys.exit(0) except Exception as e: print(e) sys.exit(1)