Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 6. (CLO5) (22 marks) The text file Qbinput.txt contains URLs of some webpages. Write a python code that reads these URLs from the text

image text in transcribed
Question 6. (CLO5) (22 marks) The text file Qbinput.txt contains URLs of some webpages. Write a python code that reads these URLs from the text file, check and display the status of every webpage. Your output should display all webpages in the text file and the status-code of each webpage. Step 1. Download and paste Qinput.txt file in the Juypter home directory on your computer. [1 mark] Step 2. Download and past Question folder on C:/MAMP/htdocs folder. Il marks| You can check the webpages by opening it in browser: http://ocalhost:8123/Ouestion/ You should get the following response Your configeration are fine Note: if you cannot open the above page in browser, ask, wour teacher for guidance. Step2: Write a python code that reads the URLs from Qoinput.txt file, and then it sends a get request to every URL. Your program output should look like the following screenshot: 120 marks ittp://localhost:8323/Quest http://localhost:852/Questo 200 Ittp://localhost: 23/Question Nittp://localhosts/e/e2e http//localhost:8323/questiones en 220 Calor123/Questo page 44 http://// Nttp//local/ Ittp://localhost32/ lietp://localhost:92/ 200 http://localhost123/ Ittp://localhosts/ Pest here the phone here Pas the cost of the cod

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions