Skip to content

Instantly share code, notes, and snippets.

@felipebastosweb
Created December 4, 2016 23:41
Show Gist options
  • Save felipebastosweb/92b9a0987f6622d7167052e092788922 to your computer and use it in GitHub Desktop.
Save felipebastosweb/92b9a0987f6622d7167052e092788922 to your computer and use it in GitHub Desktop.
import scrapy
class DogBreed(scrapy.Spider):
name = 'dogbreed'
start_urls = ['http://dogtime.com/dog-breeds']
def parse(self, response):
for breed in response.css('div.article-crumbs > div.group-list-item'):
yield {
'name' : breed.css('h2 > a.post-title::text').extract_first(),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment