Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用Lettuce编写一些测试,开始使用lxml但发现将其集成起来有点复杂,Django就像 Webrat 与 Rails 集成的方式一样。
lxml
Django
我用 django 用漂亮的汤,没有问题。
http://www.crummy.com/software/BeautifulSoup/
不确定 lxml 复杂的问题是什么(解析 html 会很复杂!)但我一直使用 Beautiful Soup 来处理 html、查找元素、构建树等。