Packs/FeedAutofocus/Integrations/FeedAutofocus/FeedAutofocus.py
def http_request(self, feed_type) -> list:
        """The HTTP request for the feed.

        Args:
            feed_type(str): The feed type (Daily or Custom feed).

        Returns:
            list. A list of indicators fetched from the feed.
        """
        if feed_type == "Daily Threat Feed":
            urls = [self.daily_feed_base_url]

        else:
            urls = self.custom_feed_url_list

        indicator_list = []  # type:List
        for url in urls:
            res = requests.request(
                method="GET",
                url=url,
                verify=self.verify,
                headers=self.headers
            )
            res.raise_for_status()
            indicator_list.extend(res.text.split('\n'))

        return indicator_list
The HTTP request for the feed.

        Args:
            feed_type(str): The feed type (Daily or Custom feed).

        Returns:
            list. A list of indicators fetched from the feed.
        
The HTTP request for the feed.
The HTTP request for the feed .
def http_request(self, feed_type) -> list:
        if feed_type == "Daily Threat Feed":
            urls = [self.daily_feed_base_url]
        else:
            urls = self.custom_feed_url_list
        indicator_list = []  
        for url in urls:
            res = requests.request(
                method="GET",
                url=url,
                verify=self.verify,
                headers=self.headers
            )
            res.raise_for_status()
            indicator_list.extend(res.text.split('\n'))
        return indicator_list
def http_request ( self , feed_type ) -> list : if feed_type == "Daily Threat Feed" : urls = [ self . daily_feed_base_url ] else : urls = self . custom_feed_url_list indicator_list = [ ] for url in urls : res = requests . request ( method = "GET" , url = url , verify = self . verify , headers = self . headers ) res . raise_for_status ( ) indicator_list . extend ( res . text . split ( '\n' ) ) return indicator_list
The HTTP request for the feed.
The HTTP request for the feed .
"""The HTTP request for the feed.

        Args:
            feed_type(str): The feed type (Daily or Custom feed).

        Returns:
            list. A list of indicators fetched from the feed.
        """ # type:List
list. A list of indicators fetched from the feed.
list . A list of indicators fetched from the feed .
self
feed_type
The feed type (Daily or Custom feed).
The feed type ( Daily or Custom feed ) .