title: Grouping same data in a single dictionary while scraping
body: <p>I am trying scrape country name, GDP and population from <a href="https://worldpopulationreview.com/countries/countries-by-national-debt/" rel="nofollow noreferrer">this website</a>. I am using <code>Scrapy</code> with <code>Python 3.7</code>. The problem is I am getting all the country data in a dictionary, all the GDP data in a dictionary and all the population data in a dictionary. But I want corresponding country data, GDP and population in a dictionary. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>import scrapy
  
  class DebtByCountriesSpider(scrapy.Spider):
      name = 'debt_by_countries'
      allowed_domains = ['worldpopulationreview.com/countries/countries-by-national-debt']
      start_urls = ['https://worldpopulationreview.com/countries/countries-by-national-debt/']
  
      def parse(self, response):
  
          # countries = response.xpath("//td/a/text()").getall()
  
          countries = response.xpath("//tbody/tr/td/a/text()").getall()
          GDP = response.xpath("//tbody/tr/td[2]/text()").getall()
          population = response.xpath("//tbody/tr/td[3]/text()").getall()
  
  
          yield{
              "country_name": countries,
              "GDP": GDP,
              "population": population
  
          }
  </code></pre>
  
  <p>Here is the output of my code:</p>
  
  <p><a href="https://i.stack.imgur.com/GrOuZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GrOuZ.png" alt="Output 1"></a></p>
  
  <p>But this is what I want (including the population):</p>
  
  <p><a href="https://i.stack.imgur.com/fWDyX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fWDyX.png" alt="What I want"></a></p>