INNER CODE UNIT · Python

used

atenreiro/opensquat · opensquat/cli.py:130

            used = initial - scanner.api_balance
            print(
                "[*] API balance remaining:",
                f"{scanner.api_balance} (used {used} of {initial} this run)"
            )
        else:
            print("[*] API balance remaining:", scanner.api_balance)

    # Reason line when the run ended early. rate_limited is transient and
    # shown in yellow; quota exhaustion is shown in red and implied by the
    # forced-zero balance above.
    if scanner.rate_limited:
        print(
            Style.BRIGHT + Fore.YELLOW +
            "[*] Rate limit hit - wait a few seconds before retrying "
            "the remaining keywords" +
            Style.RESET_ALL
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…