Joulence мысль такая:
import requests
from bs4 import BeautifulSoup
url1 = 'https://vstup.osvita.ua/y2020/r27/82/706500/'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36'}
cs = requests.get(url1, headers=headers)
# допустим фамилия вот такая
lname = "Сокол"
soup = BeautifulSoup(cs.content, 'html.parser')
table = soup.find("table", {"class": "rwd-table"})
list_family = []
for tr in table.find_all("tr", {"class": "rstatus6"}):
for td in tr.find_all("td"):
if td["data-th"] == "ПІБ":
list_family.append(td.get_text())
# print(list_family)
# print()
result = []
for family in list_family:
# print(family)
print(family.lower().split(" ")[0])
if lname.lower() in family.lower().split(" ")[0]:
print("ok")
result.append(family)
print("=="*30)
if len(result) > 0:
print(result)
else:
print("Такой абитуриент не найден")