Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
