ChatGPT Powered

https://chat.openai.com/chat

import requests

# List of websites to search
websites = ['https://example.com', 'https://example2.com']

# Keyword to search for
keyword = 'python'

# Search each website for the keyword
for website in websites:
    try:
        # Send a GET request to the website
        response = requests.get(website)
        # Get the response text
        text = response.text
        # Check if the keyword is in the response text
        if keyword in text:
            print(f'Keyword found on {website}')
        else:
            print(f'Keyword not found on {website}')
    except:
        print(f'Error accessing {website}')