Last active
March 16, 2016 04:11
-
-
Save podolskyi/0d9753f1a9fdf7cc6a76 to your computer and use it in GitHub Desktop.
Example XPath following, next tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Following next tag | |
response.xpath('//h2[contains(text(), "Contact information")]/following::table[1]//text()').extract() | |
# Tag contains | |
//person[contains(firstname, 'Kerr') and contains(lastname, 'och')] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment