import sys import html5lib # html5lib is a Python package that implements the HTML5 parsing algorithm import xml.etree.ElementTree as ET import requests import urllib.request from urllib.request import urlopen from urllib.error import HTTPError from urllib.parse import urljoin, urlparse, urlunparse import os, sys from urllib.request import urlopen from bs4 import BeautifulSoup from bs4 import BeautifulSoup, SoupStrainer import time print('''