Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions IP_Camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:")
Expand Down