Update the second code example

Update the second code example to reflect the last change in the first example.
This commit is contained in:
irgmedeiros 2013-09-27 18:22:33 -03:00
parent 780ef128d2
commit 9b50409986
1 changed files with 3 additions and 2 deletions

View File

@ -58,13 +58,14 @@ Here is an example, using the `testspiders`_ project:
from twisted.internet import reactor
from scrapy.crawler import Crawler
from scrapy.settings import Settings
from scrapy import log
from testspiders.spiders.followall import FollowAllSpider
from scrapy.utils.project import get_project_settings
def setup_crawler(domain):
spider = FollowAllSpider(domain=domain)
crawler = Crawler(Settings())
settings = get_project_settings()
crawler = Crawler(settings)
crawler.configure()
crawler.crawl(spider)
crawler.start()