dianwoba pyquery html

from pyquery import PyQuery as pyq
doc = pyq(filename="459")
cts=doc('#M2 .cpCon ul li')
for item in cts:
    print pyq(item).find('.cpPic img').attr("src"),pyq(item).find('.cpPic img').attr("alt")

编程技巧