title: Running scrapy without creating scrapy project
body: <p>I have created a scrapy project in python. So I created two scripts:</p>
  
  <p><code>dmoz_spider.py</code> and <code>items.py</code>:</p>
  
  <pre><code>$ cat dmoz_spider.py
  import scrapy
  
  class DmozSpider(scrapy.Spider):
      name = "dmoz"
      allowed_domains = ["dmoz.org"]
      start_urls = [
          "http://www.dmoz.org/Computers/Programming/Languages/Python/Books/",
          "http://www.dmoz.org/Computers/Programming/Languages/Python/Resources/"
      ]
  
      def parse(self, response):
          filename = response.url.split("/")[-2] + '.html'
          with open(filename, 'wb') as f:
              f.write(response.body)
  
  $ cat items.py
  # -*- coding: utf-8 -*-
  
  # Define here the models for your scraped items
  #
  # See documentation in:
  # http://doc.scrapy.org/en/latest/topics/items.html
  
  import scrapy
  
  
  ##class TutorialItem(scrapy.Item):
      # define the fields for your item here like:
      # name = scrapy.Field()
   ##   pass
  
  class DmozItem(scrapy.Item):
      title = scrapy.Field()
      link = scrapy.Field()
      desc = scrapy.Field()
  </code></pre>
  
  <p>What I really want to know is, how can I change my code in order to be able to run it with the following code:</p>
  
  <pre><code>$ python dmoz_spider.py
  </code></pre>
  
  <p>And get my results...</p>
  
  <p>How should I change my code?</p>