Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Have your python code ask the user for a URL to have the HTML data pulled from. This should be polite and needs to remind
Have your python code ask the user for a URL to have the HTML data pulled from. This should be polite and needs to remind the user the full URL is required http:wwwwebsite.com for example The code should check the HTTP Get request for a valid response. Only if the response is should the HTML be copied. The user should be made aware of the response code. If the response is favorable, copy the HTML code to a txt file. Because the internet changes almost daily, your code also needs to append the date and time the HTML was accessed. This needs to be automated. The user should not have to add the datetime of the request.
If the HTTP Get response is anything but the user should be asked if they want to enter a URL again. If they agree, then the code should repeat the steps above, if not, the code should thank them and terminate.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started