def get_factors(self, **config):
        """get_factors method will pull the factors score of a company."""
        factor_meta_url = '{}/metadata/factors'.format(self.__base_url)
        factor_meta = make_rest_call(url=factor_meta_url, secret_key=self.__access_key)
        json_factor_entries = factor_meta.get("entries", [])

        from_date, to_date = config.get("from_date_factor"), config.get("to_date")
        factor_url = "{}/companies/{}/history/factors/score?from={}&to={}".format(
            self.__base_url, self.domain, from_date, to_date
        )
        factors = make_rest_call(
            url=factor_url,
            secret_key=self.__access_key,
        )
        json_response_entries = factors.get("entries", [])
        if not json_response_entries:
            raise NoDataError("SecurityScorecard Connector: No data available")
        rv = []

        for value in range(len(json_response_entries) - 1):
            yesterday_values = json_response_entries[value]
            today_values = json_response_entries[value + 1]
            rv.extend(self.generate_factors(today_values, yesterday_values, json_factor_entries))
        return rv
get_factors method will pull the factors score of a company.
Solutions/SecurityScorecard Cybersecurity Ratings/Data Connectors/SecurityScorecardFactor/SecurityScorecardFactorSentinelConnector/scorecard.py