请教如何用pyquery循环取出<ul>第一个<li>标签中的女装及嵌套<ul><li>标签对应的href,后面的2、3依次类推~!
<ul class="cat-list"> <li><a href="" title="">女装</a></li> <ul class="txt-list-brand clear none"> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> </ul> <li><a href="" title="">男装</a></li> <ul class="txt-list-brand clear none"> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> </ul> <li><a href="" title="">女鞋</a></li> <ul class="txt-list-brand clear none"> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> <li><a target="_blank" href="http://xxxx.com/" title="xxx">xxx</a></li> </ul> </ul>
可以使用BeautifulSoup对网页内容进行提取啊,