why i can get nothing?

contro opinion contropinion at gmail.com
Sat Jan 14 22:54:34 EST 2012


here is my code :
import urllib
import lxml.html
down='http://download.v.163.com/dl/open/00DL0QDR0QDS0QHH.html'
file=urllib.urlopen(down).
read()
root=lxml.html.document_fromstring(file)
tnodes = root.xpath("//a/@href[contains(string(),'mp4')]")
for i,add in enumerate(tnodes):
    print  i,add

why i can get nothing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120115/f7f79e3d/attachment.html>


More information about the Python-list mailing list