# 選取class屬性包含ing的href鏈接地址
html.xpath("//div/p[2][contains(@class,'ing')]/a/@href")
# 選取價格大於20元書的價格值
html.xpath("//book[price>20.00]/price/text()")
# 選取前2本書
html.xpath("//book[position()<3]/title/text()")
# 選取class屬性包含ing的href鏈接地址
html.xpath("//div/p[2][contains(@class,'ing')]/a/@href")
# 選取價格大於20元書的價格值
html.xpath("//book[price>20.00]/price/text()")
# 選取前2本書
html.xpath("//book[position()<3]/title/text()")