#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import urllib
import requests
import xml.etree.ElementTree as ET
from send_notify import send_notify_mail

Target_Boards = ['Key_Mou_Pad']

xml_data = requests.get('http://rss.ptt.cc/Key_Mou_Pad.xml').content
fp = open('data.xml', 'w')
fp.write(xml_data);
fp.close()

tree = ET.parse('data.xml')
root = tree.getroot()

for neighbor in root.iter('name'):
    print neighbor.attrib

@@ -57,65 +57,18 @@
 ort 
-urllib%0Aimport requests%0Aimport xml.etree.ElementTree as ET
+feedparser
 %0Afro
@@ -143,31 +143,31 @@
 '%5D%0A%0A
-xml_
 data = 
-requests.get
+feedparser.parse
 ('ht
@@ -203,184 +203,301 @@
 ml')
-.content%0Afp = open('data.xml', 'w')%0Afp.write(xml_data);%0Afp.close()%0A%0Atree = ET.parse('data.xml')%0Aroot = tree.getroot()%0A%0Afor neighbor in root.iter('name'):%0A    print neighbor.attrib
+%0Aprint 'Board: ' +  data%5B'feed'%5D%5B'title'%5D + '%5Cn' + %5C%0A      'Url: ' + data%5B'feed'%5D%5B'id'%5D + '%5Cn' + %5C%0A      'Last updated:' + data%5B'feed'%5D%5B'updated'%5D + '%5Cn'%0A%0Afor item in data%5B'entries'%5D:%0A    print item%5B'published'%5D + ' ' + item%5B'id'%5D + '%5Cn' + %5C%0A          item%5B'author'%5D + ' ' + item%5B'title'%5D + '%5Cn'%0A
 %0A

use feedparser to read atom/rss