Answered step by step
Verified Expert Solution
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:
EXPECTED RESULTS:
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
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