Bringing everything together — Adding the imports The code above imports the Beautiful Soup library, urlopen function, BeautifulSoup function, and csv module. You will see how each of these things are used as we continue with the code. Getting the HTML and performing parsing In Python, you can import a function through a different alias. Therefore, request(url) and soup(page_html, ‘html.parser’) are…