In this html
<div class="css-rcl8e5">
<span class="css-wn0avc">
Salary
:
</span>
<span class="css-47jx3m">
<span class="css-4xky9y">***2000 to 3000 EGP Per Month***</span>
</span>
</div>
I am trying to get the salary value using find()
for link in links:
result = requests.get(link)
src = result.content
soup = BeautifulSoup(src, "lxml")
salaries = soup.find("span", {"class":"css-4xky9y"})
print(salaries)
salary.append(salaries)
It returns none. I tried find_all() but it returns an empty list. However, if I change the class to another one it works just fine. Any idea why that is and what can I do to solve this issue other than using selenium?