I am trying to extract the price data as well as the number of students from an Udemy website. I am on windows and I am using Python 3.8 and BeautifoulSoup in a conda environment.
This is my code:
url = 'https://www.udemy.com/course/business-analysis-conduct-a-strategy-analysis/'
html = requests.get(url).content
bs = BeautifulSoup(html, 'lxml')
searchingprice = bs.find('div', {'class':'price-text--price-part--2npPm udlite-clp-discount-price udlite-heading-xxl','data-purpose':'course-price-text'})
searchingstudents = bs.find('div', {'class':'','data-purpose':'enrollment'})
print(searchingprice)
print(searchingstudents)
And I only get info about students, not prices. What I am doing wrong?
None
<div class="" data-purpose="enrollment">
13,490 students
</div>
Here a screenshot about the website:

Thanks!
