from bs4 import BeautifulSoup as bs
import requests as req
url = "https://url.ru"
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.51 Safari/537.36'
}
headers = {'Accept'}
html = bs(req.get(url, headers=headers).text, 'lxml')
div = html.find_all('div', _class='class')[-1]
print(div)