def translate
      doc = Nokogiri::HTML(get_response)

      if main = doc.css("div.b-translation__article > ul > li#I").first
      else
        main = doc.css("div.b-translation__article").first
      end

      raise Smartdict::TranslationNotFound unless main

      # Fetch transcription
      self.transcription = doc.css("span.b-translation__tr").first.try(:text)


      self.translated = {}

      if main.xpath("./i/acronym").any?
        grep_meanings(main)
      else
         main.xpath("./ul/li").each do |li|
          grep_meanings(li)
        end
      end
    end
def translate
      doc = Nokogiri::HTML(get_response)

      if main = doc.css("div.b-translation__article > ul > li#I").first
      else
        main = doc.css("div.b-translation__article").first
      end

      raise Smartdict::TranslationNotFound unless main

      # Fetch transcription
      self.transcription = doc.css("span.b-translation__tr").first.try(:text)


      self.translated = {}

      if main.xpath("./i/acronym").any?
        grep_meanings(main)
      else
         main.xpath("./ul/li").each do |li|
          grep_meanings(li)
        end
      end
    end
TODO: refactor