
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")
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")