On Sep 28, 10:04 pm, Bruno Rocha <[email protected]> wrote:
> I just need to find a solution to read latest 5 entries in code.google

It's just a HTML table, isn't it? Use one of the HTML parsers [1-4] to
get what you want.
Alternatively parse the output of "hg incoming" run on an empty repo:
> mkdir repo
> cd repo
> hg init
> hg incoming -n http://web2py.googlecode.com/hg/ | head -n 26

[1] http://docs.python.org/library/htmlparser.html
[2] http://codespeak.net/lxml/lxmlhtml.html
[3] http://code.google.com/p/html5lib/
[4] http://www.crummy.com/software/BeautifulSoup/

Reply via email to