adpote [-1] to acquire “cc” if I want to get it instead of text() directly amount4 = ingredient.xpath(‘span[@class=”recipe__list-qty”]/text()’)[-1].get()
Reprint policy:
All articles in this blog are used except for special statements
CC BY 4.0
reprint polocy. If reproduced, please indicate source
Moule Lin
!