Hi im scraping a webpage with my script, the problem is only one item (title) can be found correctly, other items only throw back html when grabbed like that:
[<Element 'div' class=('rd-product-description__top-accordion-content-description',)>]
My Script:
from requests_html import HTMLSession
url = 'https://www.kaufland.de/product/324406424/?search_value=staubsauger'
s = HTMLSession()
r = s.get(urlos)
r.html.render(sleep=1)
titel = str(r.html.find('h1.rd-title')).replace("[<Element 'h1' title='", "").replace("' class=('rd-title',)>]", "")
price = r.html.find('span.rd-price-information__price')
description = r.html.find('div.rd-product-description__top-accordion-content-description', first=True)
print(description)
The Webpage to scrape: https://www.kaufland.de/product/324406424/?search_value=staubsauger
What is the reason i cant get anything out of it? Trying it with .text also doesnt work, as the element has no text object.