import requests
from lxml import html
response = requests.get('https://www.youtube.com/results?search_query=gorrilaz&sp=CAE%253D')
parser_tree = html.fromstring(response.content)
content = parser_tree.xpath('//*[contains(@class, "yt-lockup-thumbnail")]/a[@href]')
print(content)
print(type(content[0]))
Пытаюсь получить все ссылки на странице. Почему в ответ приходит
"Element a at 0x7ff2295f80e8">
?