Record of essential html composition (mainly for testing)

This commit is contained in:
2021-11-23 14:51:29 +01:00
parent 525d56ef63
commit 652ded4cd9
3 changed files with 40 additions and 16 deletions

View File

@ -11,9 +11,6 @@ from bs4.element import ResultSet, Tag
# the end dates of the reporting periods as strings (either years or quarters).
ResultDict = dict[str, Union[tuple[int], tuple[str]]]
DOMAIN = 'www.marketwatch.com'
HTML_PARSER = 'html.parser'
async def soup_from_url(url: str, session: ClientSession = None) -> BeautifulSoup:
"""