2024-03-08 19:18:46 -05:00
|
|
|
from requests_html import HTMLSession
|
|
|
|
|
from domains_list import DOMAINS
|
|
|
|
|
|
|
|
|
|
for domain in DOMAINS:
|
|
|
|
|
URL = f"https://{domain}"
|
|
|
|
|
session = HTMLSession()
|
|
|
|
|
resp = session.get(URL)
|
2024-03-11 17:03:07 -04:00
|
|
|
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)
|
|
|
|
|
|