This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> | |
<channel> | |
<title>The Bugle - Audio Newspaper For A Visual World</title> | |
<description> John Oliver and Andy Zaltzman, fully-qualified Grand Masters of Satirical Jabber, bridge the watery rift through the healing medium of topical podcastery.</description> | |
<itunes:subtitle> John Oliver and Andy Zaltzman, fully-qualified Grand Masters of Satirical Jabber, bridge the watery rift through the healing medium of topical podcastery.</itunes:subtitle> | |
<itunes:category text=""/> | |
<itunes:author>Times Online</itunes:author> | |
<itunes:image href="http://extras.thetimes.co.uk/public/podcastimages/700X700_thebugle.jpg"/> | |
<itunes:owner> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sequences = [] | |
sequence = {} | |
text = "" | |
f = open("in.txt", "r") | |
for line in f: | |
if line[0] == '>': | |
if text != "": | |
sequence["text"] = text | |
sequences.append(sequence) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webapp2 | |
import jinja2 | |
import os | |
import re | |
jinja_environment = jinja2.Environment(autoescape=True, | |
loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), | |
'templates'))) | |
# Base page handler |