Skip to content

Commit 1eb1b63

Browse files
committed
feat: make it great with Need a nudge?™️
1 parent 920efd7 commit 1eb1b63

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

sources/academy/webscraping/scraping_basics_javascript2/01_devtools_inspecting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ We're not here for playing around with elements, though—we want to create a sc
146146

147147
Open the [FIFA website](https://www.fifa.com/) and use the DevTools to figure out the URL of FIFA's logo image file.
148148

149-
:::tip Hint
149+
:::tip Need a nudge?
150150

151151
You're looking for an [`img`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img) element with a `src` attribute.
152152

sources/academy/webscraping/scraping_basics_javascript2/02_devtools_locating_elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Go to Shein's [Jewelry & Accessories](https://shein.com/RecommendSelection/Jewel
188188

189189
Go to Guardian's [page about F1](https://www.theguardian.com/sport/formulaone). Use the **Console** to find all HTML elements representing the articles.
190190

191-
:::tip Hint
191+
:::tip Need a nudge?
192192

193193
Learn about the [descendant combinator](https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_combinator).
194194

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Djibouti
275275

276276
Simplify the code from previous exercise. Use a single for loop and a single CSS selector.
277277

278-
:::tip Hints
278+
:::tip Need a nudge?
279279

280280
You may want to check out the following pages:
281281

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Hamilton reveals distress over ‘devastating’ groundhog accident at Canadian
349349
...
350350
```
351351

352-
:::tip Hints
352+
:::tip Need a nudge?
353353

354354
- HTML's `time` element can have an attribute `datetime`, which [contains data in a machine-readable format](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time), such as the ISO 8601.
355355
- Cheerio gives you [.attr()](https://cheerio.js.org/docs/api/classes/Cheerio#attr) to access attributes.

sources/academy/webscraping/scraping_basics_javascript2/10_crawling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ https://en.wikipedia.org/wiki/Cameroon +237
226226
...
227227
```
228228

229-
:::tip Hint
229+
:::tip Need a nudge?
230230

231231
Locating cells in tables is sometimes easier if you know how to [filter](https://cheerio.js.org/docs/api/classes/Cheerio#filter) or [navigate up](https://cheerio.js.org/docs/api/classes/Cheerio#parent) in the HTML element tree.
232232

@@ -294,7 +294,7 @@ PA Media: Lewis Hamilton reveals lifelong battle with depression after school bu
294294
...
295295
```
296296

297-
:::tip Hints
297+
:::tip Need a nudge?
298298

299299
- You can use [attribute selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors) to select HTML elements based on their attribute values.
300300
- Sometimes a person authors the article, but other times it's contributed by a news agency.

sources/academy/webscraping/scraping_basics_javascript2/12_framework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ If you export the dataset as JSON, it should look something like this:
410410
]
411411
```
412412

413-
:::tip Hints
413+
:::tip Need a nudge?
414414

415415
- The website uses `DD/MM/YYYY` format for the date of birth. You'll need to change the format to the ISO 8601 standard with dashes: `YYYY-MM-DD`
416416
- To locate the Instagram URL, use the attribute selector `a[href*='instagram']`. Learn more about attribute selectors in the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors).
@@ -505,7 +505,7 @@ async requestHandler({ ..., addRequests }) {
505505
},
506506
```
507507

508-
:::tip Hint
508+
:::tip Need a nudge?
509509

510510
When navigating to the first IMDb search result, you might find it helpful to know that `enqueueLinks()` accepts a `limit` option, letting you specify the max number of HTTP requests to enqueue.
511511

sources/academy/webscraping/scraping_basics_python/01_devtools_inspecting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ We're not here for playing around with elements, though—we want to create a sc
145145

146146
Open the [FIFA website](https://www.fifa.com/) and use the DevTools to figure out the URL of FIFA's logo image file.
147147

148-
:::tip Hint
148+
:::tip Need a nudge?
149149

150150
You're looking for an [`img`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img) element with a `src` attribute.
151151

sources/academy/webscraping/scraping_basics_python/02_devtools_locating_elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Go to Shein's [Jewelry & Accessories](https://shein.com/RecommendSelection/Jewel
189189

190190
Go to Guardian's [page about F1](https://www.theguardian.com/sport/formulaone). Use the **Console** to find all HTML elements representing the articles.
191191

192-
:::tip Hint
192+
:::tip Need a nudge?
193193

194194
Learn about the [descendant combinator](https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_combinator).
195195

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Djibouti
272272

273273
Simplify the code from previous exercise. Use a single for loop and a single CSS selector.
274274

275-
:::tip Hints
275+
:::tip Need a nudge?
276276

277277
You may want to check out the following pages:
278278

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ Hamilton reveals distress over ‘devastating’ groundhog accident at Canadian
326326
...
327327
```
328328

329-
:::tip Hints
329+
:::tip Need a nudge?
330330

331331
- HTML's `time` element can have an attribute `datetime`, which [contains data in a machine-readable format](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time), such as the ISO 8601.
332332
- Beautiful Soup gives you [access to attributes as if they were dictionary keys](https://beautiful-soup-4.readthedocs.io/en/latest/#attributes).

0 commit comments

Comments
 (0)