---
title: "python的html解析鲁棒性不够"
author: "superisaac"
date: "2011-12-06T19:02:59Z"
tags: []
categories: ["编程语言"]
slug: "python-html"
draft: false
lastmod: "2011-12-06T19:02:59Z"
id: 1294436
url: "https://superisaac.iteye.com/blog/1294436"
---

遇到现实社会中各种网页，出错的概率极大，不幸的事，　BeautifulSoup也是基于此。

若干年前在某搜索公司实习的时候，曾经作个修改HTMLParser的活计，现在不得不重新来一遍。