dianwoba pyquery html 2015/04/06 13531 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")