Created
June 22, 2015 21:41
-
-
Save gileno/83720a8c73a52685e399 to your computer and use it in GitHub Desktop.
Scrapy blog post II
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import scrapy | |
class GilenoFilhoSpider(scrapy.Spider): | |
name = "gilenofilho" | |
allowed_domains = ["gilenofilho.com.br"] | |
def starts_requests(self): | |
yield scrapy.Request(url='http://gilenofilho.com.br', callback=self.parse) | |
def parse(self, response): | |
self.log('Hello World: {0}'.format(response.url)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gileno, seu lindo!