From ab525b80b7237d8b6e53c7e860cdefbf92f8fcb3 Mon Sep 17 00:00:00 2001 From: asiong73 Date: Wed, 28 May 2025 18:44:30 +0800 Subject: [PATCH] Update IP_Camera.py --- IP_Camera.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IP_Camera.py b/IP_Camera.py index 2b20c02..478587e 100644 --- a/IP_Camera.py +++ b/IP_Camera.py @@ -6,7 +6,7 @@ init(autoreset=True) # Replace with your Shodan API key -SHODAN_API_KEY = 'SHODAN_API_KEY' +SHODAN_API_KEY =dJqD2LwC7WV09LVrjRW2voSzKighXBWd # List of countries and their codes COUNTRIES = [ @@ -52,7 +52,7 @@ def display_country_list(): def get_ip_cameras_by_country(): """Fetch IP cameras for a selected country.""" - api = shodan.Shodan(SHODAN_API_KEY) + api = shodan.Shodan dJqD2LwC7WV09LVrjRW2voSzKighXBWd try: credits = api.info()['query_credits'] if credits <= 0: @@ -120,7 +120,7 @@ def update_ip_camera(): def main(): """Main function.""" - api = shodan.Shodan(SHODAN_API_KEY) + api = shodan.Shodan dJqD2LwC7WV09LVrjRW2voSzKighXBWd try: info = api.info() print(Fore.GREEN + "API Key is valid. Usage stats:")