dianwoba pyquery html

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

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