Skip to content

Instantly share code, notes, and snippets.

@gfreivasc
Created December 28, 2016 17:19
Show Gist options
  • Select an option

  • Save gfreivasc/781b170adfebca38a854a36685f9795e to your computer and use it in GitHub Desktop.

Select an option

Save gfreivasc/781b170adfebca38a854a36685f9795e to your computer and use it in GitHub Desktop.
import scrapy
class MinimalSpider(scrapy.Spider):
name = 'minimal'
start_urls = ['http://gabrielfv.com/']
def parse(self, response):
data = {}
data['title'] = response.css('title::text').extract_first()
data['text'] = response.css('p::text').extract_first()
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment