import re import requests from bs4 import BeautifulSoup # Check if input contains integer substring def hasInteger(input): return bool(re.search(r"(?