I try to scrape all bonus items of a supermarket. After inspecting the HTML code I found the name of each bonus in a span with class named "line-clamp_root__3yA0X line-clamp_active__2502b"
However, when I try to find this spand by class name I can't find it. Here is my code:
import requests
from bs4 import BeautifulSoup
url='https://www.ah.nl/bonus'
response = requests.get(url)
soup = BeautifulSoup(response.content, 'html.parser')
soup.find_all('span', {'class': 'line-clamp_root__3yA0X line-clamp_active__2502b'})
Output is [ ]
Does anyone have an idea what I am doing wrong?
Many thanks in advance!
Ps. My final goal is to scrape all bonus item names :)