response.xpath

response.xpath('//ul[contains(@class, "menu-margin")]/li[not (contains(@class, "sideNavHeader"))]')

原文地址:https://www.cnblogs.com/yugengde/p/8432623.html