Skip to content

Commit dae5621

Browse files
authored
fix: exercises using the F1 website got outdated (#1560)
1 parent c0cbf98 commit dae5621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/academy/webscraping/scraping_basics_python/05_parsing_html.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ https://www.formula1.com/en/teams
132132

133133
html_code = response.text
134134
soup = BeautifulSoup(html_code, "html.parser")
135-
print(len(soup.select(".outline")))
135+
print(len(soup.select(".group")))
136136
```
137137

138138
</details>
@@ -154,7 +154,7 @@ Use the same URL as in the previous exercise, but this time print a total count
154154

155155
html_code = response.text
156156
soup = BeautifulSoup(html_code, "html.parser")
157-
print(len(soup.select(".f1-grid")))
157+
print(len(soup.select(".f1-team-driver-name")))
158158
```
159159

160160
</details>

0 commit comments

Comments
 (0)