Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please see attached Below is a complete functioning python script, your job is to explain how the code works and what it does. (100 words

Please see attached

image text in transcribed
Below is a complete functioning python script, your job is to explain how the code works and what it does. (100 words or less) Use this page URL for testing: https://ung.edu/landing/ung-contact-information.php ### START OF SCRIPT ### import requests import re url = input('Enter a URL (include "http://"): ") website = requests.get(url) html = website.text links = re.findall(""((http/ftp)s?://.*?)", html) emails = re.findall(r"\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Zla-z][2,}\\b", html) phones = re.findall(r"\\b\\d[3][-.]?\\d[3][-.]?\\d[4]\\b", html) print("\ Found {} links".format(len(links))) for email in emails: print(email) for phone in phones: print(phone) ### END OF SCRIPT ###

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_2

Step: 3

blur-text-image_3

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions