What is the correct soup.find() command?
问题 I am trying to webscrape the racename ('The Valley R2') and the horse name ('Ronniejay') from the following website https://www.punters.com.au/form-guide/form-finder/e2a0f7e13bf0057b4c156aea23019b18. What is the correct soup.find() code to do this. My code to get the race name: from bs4 import BeautifulSoup import requests source = requests.get('https://www.punters.com.au/form-guide/form-finder/e2a0f7e13bf0057b4c156aea23019b18').text soup = BeautifulSoup(source,'lxml') race = soup.find('h3')