Closed sunxk closed 3 years ago
In jQuery, $(".zztj > ul > li").html() alse return the first element. See here https://api.jquery.com/html/
if you want to get all the items. Try this.
doc = pq(html)
print(list(doc(".zztj > ul > li").map(lambda i, ele: doc(ele).html())))
the code below:
the outputs: