Question: can you help me write a code to do the following using the provided code from python? Python Programming Name: Project H3 Web Page Scraper

Python Programming Name: Project H3 Web Page Scraper Date: Write the Python module Project 3 that does the following: - Using a loop do the following: - If the user types 'EXIT' then exit the loop and the program terminates. - Otherwise repeat the statements in the loop - Note: the keyword being searched and the word 'EXIT' should no be case sensitive - Ask the user for a keyword to search - Create a socket connection to the web page at www.stealmylogin. com - Count the number of times the keyword is found on that web page import urllib3 import certifi target_host = "www.stealmylogin.com" http = urlib3.PoolManager(ca_certs=certifi.where()) response = http.request ( 'GET', target_host ) \#print (response,status)! data = response. data.decode ( 'utf- I ) \#print(data) wordCt =0 for word in data.split(): if word. lower() == "the": wordCt +=1 print(wordCt, "words were found.")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
