lxml and links

Ampedesign metalkeys404 at gmail.com
Sun Jun 29 02:09:04 EDT 2008


On Jun 27, 10:00 pm, Stefan Behnel <stefan... at behnel.de> wrote:
> Ampedesign wrote:
> > I'm trying to extract all the links on a page with lxml. Ideally, I
> > would like it to return me a list of hrefs of each link on the page,
> > in a list.
>
> > How would I go about doing this?
>
> Read the manual?
>
> http://codespeak.net/lxml/dev/lxmlhtml.html#working-with-linkshttp://codespeak.net/lxml/dev/tutorial.html#tree-iterationhttp://codespeak.net/lxml/dev/xpathxslt.html#xpath
>
> Stefan

Yeah, I was just having some trouble understanding it.

But nevermind, I think I figured it out.



More information about the Python-list mailing list