title: Scrapy error : exceptions.AttributeError: 'HtmlResponse' object has no attribute 'urljoin'
body: <p>I have installed scrapy using pip and tried the example in the scrapy documentation.</p>
  
  <p>I got the error <code>cannot import name xmlrpc_client</code></p>
  
  <p>After looking into a stachoverflow question <a href="https://stackoverflow.com/questions/30964836/scrapy-throws-importerror-cannot-import-name-xmlrpc-client">here</a>
  i have fixed it using</p>
  
  <pre><code>sudo pip uninstall scrapy
  
  sudo pip install scrapy==0.24.2
  </code></pre>
  
  <p>but now it shows me <code>exceptions.AttributeError: 'HtmlResponse' object has no attribute 'urljoin'</code></p>
  
  <p>Here is my code :</p>
  
  <pre><code>import scrapy
  
  
  class StackOverflowSpider(scrapy.Spider):
      name = 'stackoverflow'
      start_urls = ['https://stackoverflow.com/questions?sort=votes']
  
      def parse(self, response):
          for href in response.css('.question-summary h3 a::attr(href)'):
              full_url = response.urljoin(href.extract())
              yield scrapy.Request(full_url, callback=self.parse_question)
  
      def parse_question(self, response):
          yield {
              'title': response.css('h1 a::text').extract()[0],
              'votes': response.css('.question .vote-count-post::text').extract()[0],
              'body': response.css('.question .post-text').extract()[0],
              'tags': response.css('.question .post-tag::text').extract(),
              'link': response.url,
          }
  </code></pre>
  
  <p>Can anyone please help me with this!</p>