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:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user