Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created June 1, 2021 12:19
Show Gist options
  • Save Abhayparashar31/01b857928dee76b4763e750a9887b839 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/01b857928dee76b4763e750a9887b839 to your computer and use it in GitHub Desktop.
Elements Selector Expression
All Tags (h1) response.css('h1').extract()
All Tags with Id(Header) responses.css('#header::text').extract()
All Links(a) response.css('a').extract()
Extracting text from all the classes named text response.css('.text::text').extract()
All Links(a) inside a Paragraph(p) tag response.css('p a::text').extract()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment