def agent(self):
        """
        This method returns the agent name.
        :return:
        """
        try:
            if self._data_from_search:
                agent = self._data_from_search.find(
                    'ul', {'class': 'links'}).text
                return agent.split(':')[1].strip()
            else:
                return self._ad_page_content.find('a', {'id': 'smi-link-branded'}).text.strip()
        except Exception as e:
            if self._debug:
                logging.error(
                    "Error getting agent. Error message: " + e.args[0])
            return
This method returns the agent name.
        :return: