title: Scrape a bit of text using Scrapy
body: <p>I'm trying to program a web scraper that collects exchange rates of currencies compared to the Euro from the website <a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html" rel="nofollow noreferrer">https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html</a>, and I was able to get the actual rates to work, but I also want it to scrape the actual currencies (Such as USD, JPY etc.) and ran into the problem there. I figured out that the actual currencies are stored in the class &quot;currency&quot; but have no idea how to make the scraper to pick that up. My code is as follows:</p>
  <pre><code>
  
  class CurrencySpider(scrapy.Spider):
      name = 'currency'
      start_urls = [
          'https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html'
      ]
  
      def parse(self, response):
          test = response.css('div.forextable')
          currency = test.css('div.forextable::text').extract()
          rate = response.css('.rate::text').extract()
          yield {'currencytext': currency}
          yield {'rate': rate}
  </code></pre>