views:

58

answers:

2

I am writing an app for GAE (Python 2.5) and I was wondering if there is any library like PyQuery (which runs on Python 2.6+).

All I have to do is to load an HTML file and get the content of a especific tag through its ID. In PyQuery, or even Python2.6's libraries like lxml, it is very easy, but I don't know how to do that with Python 2.5.

Can someone help me? ^^

Thank you guys. :)

+4  A: 

BeautifulSoup should be what you are looking for.

FlowofSoul
+2  A: 

BeautifulSoup is a common choice for HTML parsing, and is compatible with Python 2.5.

Amber