Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python: Please help with the following Assignment Thank you so much: EXPECTED RESULTS: LAB7: To get you started, I've provided you the beginning part of

Python: Please help with the following Assignment Thank you so much:

image text in transcribedimage text in transcribedimage text in transcribed

EXPECTED RESULTS:

image text in transcribed

LAB7: To get you started, I've provided you the beginning part of the program. Analyze the program to understand why it works. To see result look at lab7-1.txt. ullust/bin/python import urllib2 this is a Python module that can be used for fetching URLs import string # this is a Python module that can be used for fetching strings? lab71-'' "# for line in urlib2.urlopen("http://www.cisco.com"): #here we are opening the URL www.cisco.com if 'href-' in string,lower(line): #in bash scripting we used grep lab71-lab71 + line # fs open(" lab7-l txt'."w") # furite(lab71) # LAB7: To get you started, I've provided you the beginning part of the program. Analyze the program to understand why it works. To see result look at lab7-1.txt. ullust/bin/python import urllib2 this is a Python module that can be used for fetching URLs import string # this is a Python module that can be used for fetching strings? lab71-'' "# for line in urlib2.urlopen("http://www.cisco.com"): #here we are opening the URL www.cisco.com if 'href-' in string,lower(line): #in bash scripting we used grep lab71-lab71 + line # fs open(" lab7-l txt'."w") # furite(lab71) #

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

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions