BeautifulSoup partial div class matching
问题 I need to fetch milestone information from Github by scraping. The milestone information is embedded in 2 types of div classes: table-list-item milestone notdue and table-list-item milestone . How can I retrieve the information contained in both classes? I have: milestones = soup.find_all('div', {'class': 'table-list-item milestone'}) but this line returns empty list for table-list-item milestone notdue Right now I am doing the following (ugly hack): milestones = soup.find_all('div', {'class'