title: Cannot extract Latitutde/longitude from website
body: <p>I am new to stacker flow and this is my first post, so I hope I can explain myself well and you can help me! Thanks in advance for your help!!
  I am using Scrapy to web scrape a popular real statement website from my native country. I am doing well with all the characteristics I want, such as Price, Surface, Bedrooms, among others. But I haven't been able to get the latitude/longitude of a property. In the website, for example, <a href="https://www.portalinmobiliario.com/MLC-564988630-estilo-mariposa-_JM#position=2&amp;type=item&amp;tracking_id=ed337e69-9999-4ede-b393-ef378e1a5675" rel="nofollow noreferrer">https://www.portalinmobiliario.com/MLC-564988630-estilo-mariposa-_JM#position=2&amp;type=item&amp;tracking_id=ed337e69-9999-4ede-b393-ef378e1a5675</a>, you can find a google map location as the image shows, and inside of this HTML element, it is possible to get the lat/long (highlighted in blue) but when I try to reach this element in my code, the spider doesn't recognize it.</p>
  <p>Using this css selector <code>crs_location = response.css('div.map-container  img:nth-child(1)').getall()</code> I am able to get the first img inside the div, getting the following output <code>https://http2.mlstatic.com/resources/frontend/web-vip/ui-dist/images/pin-real-estate-d1ebb73e65.svg</code>, but when I change the nth-child to: <code>crs_location = response.css('div.map-container  img:nth-child(2)').getall()</code> to get the second child (what I want), the crs_location variable outcome empty.</p>
  <p>I appreciate it if you can help to figure out how to get the lat/long of this.
  Thanks!</p>
  <p><a href="https://i.stack.imgur.com/Sfdmn.jpg" rel="nofollow noreferrer">HTML elements</a></p>
  <p>Complete Code:
  import scrapy
  from scrapy import Selector
  import requests
  import pandas as pd
  import numpy as np</p>
  <pre><code># Import the CrawlerProcess
  from scrapy.crawler import CrawlerProcess
  
  # Create the Spider class
  class Spider_Inmob(scrapy.Spider):
    name = 'spider_inmob'
    #download_delay = 3
    # start_requests method
    def start_requests( self ):
      headers= {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0'}
      i=1
      page=0
      for y in range(1):
        url = 'http://portalinmobiliario.com/venta/departamento/propiedades-usadas/providencia-metropolitana/_Desde_' + str(page)
        print(&quot;----------PRUEBA1--------------&quot; + str(page))
        page = 51 + 50*i
        i+=1
        yield scrapy.Request(url = url, callback=self.parse, headers=headers)
        
    
    
    def parse(self, response):
      global aux3
      links_busqueda = response.css('ol.ui-search-layout &gt; li.ui-search-layout__item a.ui-search-result__content.ui-search-link::attr(href)').getall()
      print(len(links_busqueda))
      for url in links_busqueda:
        aux3 = aux3+1
        print(aux3)
        yield response.follow(url=url, callback = self.parse_propiedad, meta={'dont_redirect': True, 'handle_httpstatus_list':[302]})
      
    def parse_propiedad(self,response):
      global aux2
      aux2 = aux2+1
      global crs_Bedroom, crs_Currency, crs_Link, crs_Parking, crs_Price, crs_Restroom, crs_Storage, crs_Total_Surface, crs_Useful_Surface, crs_location
      #print (&quot;Number iteration &quot; + str(aux2))
      global Nombre_variables
      #print('-------------------------PRUEBAAAA------1---------------')
      aux=1
      crs_prueba = response.css('header.item-title &gt; h1.item-title__primary::text').getall()
      #print(crs_prueba)
      #This for goes over each characteristic for property like, total surface, bedrooms, bathrooms, etc
      for i in range(20):
        variable = response.css('section.specs-container &gt; ul.specs-list  li.specs-item:nth-child('+ str(i) +') &gt; strong::text').getall()
        variable2 = response.css('section.specs-container &gt; ul.specs-list  li.specs-item:nth-child('+ str(i) +') &gt; span::text').getall()
        np_variable = np.array(variable)
        if not variable:
          a=0
        else:
          for var in Nombre_variables:
            if np_variable[0] == &quot;Superficie total&quot;:
              crs_Total_Surface = variable2
            elif np_variable[0] == &quot;Superficie útil&quot;:
              crs_Useful_Surface = variable2
            elif np_variable[0] == &quot;Dormitorios&quot;:
              crs_Bedroom = variable2
            elif np_variable[0] == &quot;Baños&quot;:
              crs_Restroom = variable2
            elif np_variable[0] == &quot;Estacionamientos&quot;:
              crs_Parking = variable2
            elif np_variable[0] == &quot;Bodegas&quot;:
              crs_Storage = variable2
     # print(crs_Storage)
  
      #print(&quot;----------------PRUEBA--------------2--------------------&quot;)
  
      crs_Link = response.url
      crs_location = response.css('div.map-container  img:nth-child(2)').getall()
      print(&quot;/n/n/n&quot;)
      print(crs_location)
      print(&quot;/n/n/n&quot;)
      # Ass we have two kind of currency, we transform everything to UF currency
      variable3 = response.css('fieldset.item-price  span.price-tag &gt; span.price-tag-symbol::text').getall()
      np_variable3 = np.array(variable3)
    #  print(np_variable3[0])
      if np_variable3[0] != &quot;UF&quot;:
        crs_Currency = &quot;$&quot;
        variable4 = response.css('fieldset.item-price  span.price-tag &gt; span.price-tag-fraction::text').getall()
        variable4= str(variable4).strip(&quot;['']&quot;)
      #  print(variable4)
        variable4= str(variable4).replace(&quot;.&quot;,&quot;&quot;)
       # print(variable4)
       # print(type(variable4))
        np_variable4 = np.array(variable4)
        variable4 = float(variable4)
       # print(variable4)
        crs_Price = round(variable4/28500,0)
      else:
        crs_Currency = response.css('fieldset.item-price  span.price-tag &gt; span.price-tag-symbol::text').getall()
        crs_Price = response.css('fieldset.item-price  span.price-tag &gt; span.price-tag-fraction::text').getall()
       
  
  
  
      df2 = {'Link':[crs_Link],
            'Currency':[crs_Currency], 
            'Price':[crs_Price],
            'Total Surface':[crs_Total_Surface],
            'Useful Surface':[crs_Useful_Surface],
            'Location':[crs_location], 
            'Bedroom':[crs_Bedroom],
            'Restroom':[crs_Restroom],
            'Parking':[crs_Parking],
            'Storage':[crs_Storage]}
     # print(df2)
     # print('-------------------------PRUEBAAAA---------------')
      global df3
      df3 = df3.append(df2, ignore_index=True)
      
      #print(df3.head())
  
  
  
  #Name of variables to take in consideration
  Nombre_variables =[&quot;Superficie total&quot;, &quot;Superficie útil&quot;, &quot;Dormitorios&quot;, &quot;Baños&quot;, &quot;Estacionamientos&quot;, &quot;Bodegas&quot;]
  Dict_Nombre_variables = {}
  
  #initialize DataFrame
  headers = [&quot;Link&quot;,&quot;Currency&quot;, &quot;Price&quot;, &quot;Total Surface&quot;,&quot;Useful Surface&quot;, &quot;Location&quot;, &quot;Bedroom&quot;, &quot;Restroom&quot;, &quot;Parking&quot;, &quot;Storage&quot;]
  df_data = pd.DataFrame(columns=headers)
  headers = [&quot;Link&quot;,&quot;Currency&quot;, &quot;Price&quot;, &quot;Total Surface&quot;,&quot;Useful Surface&quot;, &quot;Location&quot;, &quot;Bedroom&quot;, &quot;Restroom&quot;, &quot;Parking&quot;, &quot;Storage&quot;]
  df3 = pd.DataFrame(columns=headers)
  #Initialize global variables used in methods
  aux2=0
  crs_Link=0
  crs_Currency=0
  crs_Price=0
  crs_Total_Surface=0
  crs_Useful_Surface=0
  crs_location=0
  crs_Bedroom=0
  crs_Restroom=0
  crs_Parking=0
  crs_Storage =0
  aux3=0
  # Run the Spider
  process = CrawlerProcess({'USER_AGENT': 'hol'})
  process.crawl(Spider_Inmob)
  process.start()
  path = &quot;D:\\0. Documentos\\7. DataCamp\\1. WebScraping\\99. Ejemplos\\PortalInmob.csv&quot;
  df3.to_csv(path)
  print(df3.head())
  print(df3)
  print(df3['Location'])
  </code></pre>