Anthology script for domain names. Used get courses for Walmart, and made a backup of the screenshots for 1-off courses. Glassdoor and todo notes.

This commit is contained in:
Norm Rasmussen
2024-03-11 17:03:07 -04:00
parent a3455a720c
commit 6576919ff6
6 changed files with 126 additions and 18 deletions

View File

@ -5,6 +5,13 @@ for domain in DOMAINS:
URL = f"https://{domain}"
session = HTMLSession()
resp = session.get(URL)
title = resp.html.find('head > title', first=True)
group_name = title.text.split("|")[0]
print(group_name)
try:
title = resp.html.find('head > title', first=True)
group_name = title.text.split("|")
print(group_name)
except AttributeError as e:
print(e)
finally:
title = resp.html.find('head > meta:nth-child(3)', first=True)
print(title.text)