I am scraping this site and I need to get the salary value from it as shown in the image
I have tried to do the flowing:
import requests
from bs4 import BeautifulSoup
result = requests.get("https://wuzzuf.net/jobs/p/xGYIYbJlYhsC-Senior-Python-Developer-Cairo- Egypt?o=1&l=sp&t=sj&a=python|search-v3|hpb")
page = result.content
soup = BeautifulSoup(page, "lxml")
salaries_div = soup.find_all("div",{"class":"css-rcl8e5"})
for span in salaries_div[3].select("span"):
print (span)
But I am only getting this span
<span class="css-wn0avc">Salary<!-- -->:</span>
My question is why I can't get all the span inside the div?
And what should I do to get salary value in this case?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…