INNER CODE UNIT · Python

_read_keywords

atenreiro/opensquat · opensquat/app.py:144

    def _read_keywords(self):
        """Load the keywords file into self.list_file_keywords."""
        with open(self.keywords_filename, mode='r', encoding='utf-8') as file_keywords:
            for line in file_keywords:
                line = line.strip()
                if line and not line.startswith("#"):
                    self.list_file_keywords.append(line)

    def read_files(self):
        """
        Method to read domain and keywords files (community/premium modes).
        """
        self._read_domains()
        self._read_keywords()

    def print_info(self):
        """
        Method to print some configuration information.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…