Skip to content

Commit ec95e1b

Browse files
committed
refactor: use partial for the exercises intro
1 parent 7e3229a commit ec95e1b

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

sources/academy/webscraping/scraping_basics_python/04_downloading_html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar_position: 4
66
slug: /scraping-basics-python/downloading-html
77
---
88

9+
import Exercises from './_exercises.mdx';
10+
911
**In this lesson we'll start building a Python application for watching prices. As a first step, we'll use the HTTPX library to download HTML code of a product listing page.**
1012

1113
---
@@ -167,9 +169,7 @@ Done! We have managed to apply basic error handling. Now let's get back to our p
167169

168170
---
169171

170-
## Exercises
171-
172-
These challenges are here to help you test what you’ve learned in this lesson. Try to resist the urge to peek at the solutions right away. Remember, the best learning happens when you dive in and do it yourself!
172+
<Exercises />
173173

174174
### Scrape Amazon
175175

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar_position: 5
66
slug: /scraping-basics-python/parsing-html
77
---
88

9+
import Exercises from './_exercises.mdx';
10+
911
**In this lesson we'll look for products in the downloaded HTML. We'll use BeautifulSoup to turn the HTML into objects which we can work with in our Python program.**
1012

1113
---
@@ -157,9 +159,7 @@ That's it! We have managed to download a product listing, parse its HTML, and co
157159

158160
---
159161

160-
## Exercises
161-
162-
These challenges are here to help you test what you’ve learned in this lesson. Try to resist the urge to peek at the solutions right away. Remember, the best learning happens when you dive in and do it yourself!
162+
<Exercises />
163163

164164
### Scrape F1 teams
165165

sources/academy/webscraping/scraping_basics_python/06_locating_elements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar_position: 6
66
slug: /scraping-basics-python/locating-elements
77
---
88

9+
import Exercises from './_exercises.mdx';
10+
911
**In this lesson we'll locate product data in the downloaded HTML. We'll use BeautifulSoup to find those HTML elements which contain details about each product, such as title or price.**
1012

1113
---
@@ -181,9 +183,7 @@ Great! We have managed to use CSS selectors and walk the HTML tree to get a list
181183

182184
---
183185

184-
## Exercises
185-
186-
These challenges are here to help you test what you’ve learned in this lesson. Try to resist the urge to peek at the solutions right away. Remember, the best learning happens when you dive in and do it yourself!
186+
<Exercises />
187187

188188
### Scrape Wikipedia
189189

sources/academy/webscraping/scraping_basics_python/07_extracting_data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar_position: 7
66
slug: /scraping-basics-python/extracting-data
77
---
88

9+
import Exercises from './_exercises.mdx';
10+
911
**In this lesson we'll finish extracting product data from the downloaded HTML. With help of basic string manipulation we'll focus on cleaning and correctly representing the product price.**
1012

1113
---
@@ -207,9 +209,7 @@ Well, not to spoil the excitement, but in its current form, the data isn't very
207209

208210
---
209211

210-
## Exercises
211-
212-
These challenges are here to help you test what you’ve learned in this lesson. Try to resist the urge to peek at the solutions right away. Remember, the best learning happens when you dive in and do it yourself!
212+
<Exercises />
213213

214214
### Scrape units on stock
215215

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Exercises
2+
3+
These challenges are here to help you test what you’ve learned in this lesson. Try to resist the urge to peek at the solutions right away. Remember, the best learning happens when you dive in and do it yourself!

0 commit comments

Comments
 (0)