Skip to content

Instantly share code, notes, and snippets.

@SurendraTamang
Created June 13, 2021 07:34
Show Gist options
  • Save SurendraTamang/77fd02f85bfe3d39b4800cbbcb1667b3 to your computer and use it in GitHub Desktop.
Save SurendraTamang/77fd02f85bfe3d39b4800cbbcb1667b3 to your computer and use it in GitHub Desktop.
xpath #shorts find while working with that
response.xpath(f'{NEIGHBOURHOOD_XPATH}/following-sibling::td//option[not(@value = " ")]/@value').extract()
# Here we can use the xpath condition not to include if the value is " "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment