title: scrapy / python 3.5 : targeting and filtering
body: <p>i want to extract the following field : movie's,director's,actors' name
  on the page <a href="http://www.allocine.fr/film/fichefilm_gen_cfilm=29007.html" rel="nofollow noreferrer">allocine.fr</a></p>
  
  <p>This will help me to make my template for further scraps.</p>
  
  <p>Here is my bad working  code (inside spiders directory)</p>
  
  <pre><code>from scrapy.contrib.spiders import CrawlSpider, Rule
  from cinefil.items import Article
  #from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor  ==&gt; depreciated
  
  from scrapy.linkextractors import LinkExtractor
  
  from scrapy import log
  
  class CinefilSpider(CrawlSpider):
      name="cinefil"
      allowed_domains = ["allocine.fr"]
      start_urls = ["http://www.allocine.fr/film/fichefilm_gen_cfilm=29007.html"]
      rules = [
  
          Rule(LinkExtractor(allow=('(/film/)((?!:).)*$'),), callback="parse_item", follow=False)
      ]
  
      def parse_item(self, response):
  
          ROOTPATH = '//div[@class="meta-body-item"]'
          item = Article()
  
          casiers = response.xpath(ROOTPATH).extract()        
  
          for matos in casiers:
  
              print("\n-----      ------       ------        --------         ---------")
  
              print(matos)
  
  
          return item
  </code></pre>