old_contents: # encoding : utf-8
  from html2text import html2text
  import os
  
  def getbody(html):
      try:
          txt = html2text(html.decode('utf8'))
      except:
          txt = html2text(html.decode('gbk'))    
      try:
          txt = txt.encode('utf8').split('\n')
      except:
          txt = txt.encode('gbk').split('\n')
      for r in txt:
          r = r.strip()
          if r == '':continue
          elif r[0]=='[':pass
          elif r[0].isdigit() and r[2]>chr(127):yield r
          elif r[0]=='#':yield r
          elif r[0]== '*' and r[1]=='*': yield r
          elif r[0]>chr(127):yield r
  if __name__ == '__main__':
      url = "http://baby.sina.com.cn/nutrition/09/1203/0817133159.shtml"
      html = os.popen("curl --compressed %s" % url).read()
      print getbody(html)
new_contents: # encoding : utf-8
  from html2text import html2text
  import os
  
  def getbody(html):
      try:
          txt = html2text(html.decode('utf8'))
      except:
          txt = html2text(html.decode('gbk'))    
      try:
          txt = txt.encode('utf8').split('\n')
      except:
          txt = txt.encode('gbk').split('\n')
      for r in txt:
          r = r.strip()
          if r == '':continue
          elif r[0] == '[':pass
          elif r[-1] == ']':pass
          elif r[5:]<chr(127):pass
          elif r[0].isdigit() and r[2] > chr(127):yield r
          elif r[0] == '#' and r[1] != '#':yield r
          elif r[0] == '*' and r[1] == '*': yield r
          elif r[0] > chr(127):yield r
  if __name__ == '__main__':
      url = "http://baby.sina.com.cn/edu/09/1303/0800133263.shtml"
      html = os.popen("curl --compressed %s" % url).read()
      print '\n'.join(getbody(html))
subject: 添加了己种对正文的判断，比之前更准确