PyFunceble/mining.py
def list_of_mined(cls):
        """
        Provide the list of mined so they can be added to the list
        queue.

        :return: The list of mined domains or URL.
        :rtype: list
        """

        # We initiate a variable which will return the result.
        result = []

        if PyFunceble.CONFIGURATION["mining"]:
            # The mining is activated.

            if PyFunceble.INTERN["file_to_test"] in PyFunceble.INTERN["mined"]:
                # The file we are testing is into our mining database.

                for element in PyFunceble.INTERN["mined"][
                    PyFunceble.INTERN["file_to_test"]
                ]:
                    # We loop through the list of index of the file we are testing.

                    # We append the element of the currently read index to our result.
                    result.extend(
                        PyFunceble.INTERN["mined"][PyFunceble.INTERN["file_to_test"]][
                            element
                        ]
                    )

                # We format our result.
                result = List(result).format()

        # We return the result.
        return result
def list_of_mined(cls):
        # We initiate a variable which will return the result.
        result = []

        if PyFunceble.CONFIGURATION["mining"]:
            # The mining is activated.

            if PyFunceble.INTERN["file_to_test"] in PyFunceble.INTERN["mined"]:
                # The file we are testing is into our mining database.

                for element in PyFunceble.INTERN["mined"][
                    PyFunceble.INTERN["file_to_test"]
                ]:
                    # We loop through the list of index of the file we are testing.

                    # We append the element of the currently read index to our result.
                    result.extend(
                        PyFunceble.INTERN["mined"][PyFunceble.INTERN["file_to_test"]][
                            element
                        ]
                    )

                # We format our result.
                result = List(result).format()

        # We return the result.
        return result
def list_of_mined ( cls ) : # We initiate a variable which will return the result. result = [ ] if PyFunceble . CONFIGURATION [ "mining" ] : # The mining is activated. if PyFunceble . INTERN [ "file_to_test" ] in PyFunceble . INTERN [ "mined" ] : # The file we are testing is into our mining database. for element in PyFunceble . INTERN [ "mined" ] [ PyFunceble . INTERN [ "file_to_test" ] ] : # We loop through the list of index of the file we are testing. # We append the element of the currently read index to our result. result . extend ( PyFunceble . INTERN [ "mined" ] [ PyFunceble . INTERN [ "file_to_test" ] ] [ element ] ) # We format our result. result = List ( result ) . format ( ) # We return the result. return result
Provide the list of mined so they can be added to the list
        queue.

        :return: The list of mined domains or URL.
        :rtype: list
Provide the list of mined so they can be added to the list queue .