I am new to Beautiful Soup.
I am trying to get the "Ranking Criteria" class in the below link. Unfortunately, I used the "criteria" as its class for soup_findAll(), but it showed no content there. I could not find any other class names which can give me the data I want (Overall score, academic reputation and so on)
I actually wanted to do web crawling for multiple universities, so I hope to use the URL which I can format for various universities(Just change the universities name). Otherwise, I would have just used the outerHTML for that(tested and it worked, but I did not know how to customize that for multiple universities)
My code is as below. I ended up using get_text():
r = requests.get("https://www.topuniversities.com/universities/california-institute-technology-caltech")
html = r.text
soup = BeautifulSoup(html, 'html.parser')
tds = soup.get_text()
print(tds)
It was not successful, as it got too much stuff which left me hard to evaluate the information I want.
Any help would be highly appreciated! Thanks!