Your IP : 18.188.195.90
�
��^c @ s� d Z d d l Z d d l Z d d l m Z m Z d Z d Z d e j f d � � YZ e
d k r� e � Z e j e � � e j
e j d � n d S(
sx
A demo that reads in an RSS XML document and emits an HTML file containing
a list of the individual items in the feed.
i����N( t make_parsert handlers� <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>%s</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>%s</h1>
sU
</ul>
<hr>
<address>
Converted to HTML by rss2html.py.
</address>
</body>
</html>
t
RSSHandlerc B s2 e Z e j d � Z d � Z d � Z d � Z RS( c C sb t j j | � t j d � | � | _ d | _ d | _ t | _
d | _ d | _ d | _
d S( Ns utf-8t ( R t ContentHandlert __init__t codecst getwritert _outt _textt Nonet _parentt Falset
_list_startedt _titlet _linkt _descr( t selft out( ( s) /usr/lib64/python2.7/Demo/xml/rss2html.pyR ) s c C s= | d k s$ | d k s$ | d k r0 | | _ n d | _ d S( Nt channelt imaget itemR ( R R ( R t namet attrs( ( s) /usr/lib64/python2.7/Demo/xml/rss2html.pyt startElement6 s $c C sb | j d k rg | d k r>