Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # xpath ### contains() <code py> code = sel.xpath('//code[contains(@class, "js-megamenu-json")]') </code> ### name() <code py> data_product_line = li.xpath( './/div[@*[name() = "data-product-line"]]/@*[2]' ).extract_first() </code> ### xpath last ``` '//div[@class="pdp-description-list-item"][last()]/dd/text()' ``` open/xpath.txt Last modified: 2024/10/05 06:15by 127.0.0.1