Skip to content

Commit f2771b0

Browse files
committed
refactor: link to MDN as a canonical resource
1 parent a4f392d commit f2771b0

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

sources/academy/webscraping/puppeteer_playwright/common_use_cases/paginating_through_results.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ await browser.close();
101101
</TabItem>
102102
</Tabs>
103103

104-
> Learn more about the `:nth-last-child` pseudo-class [on W3Schools](https://www.w3schools.com/cssref/sel_nth-last-child.asp). It works similar to `:nth-child`, but starts from the bottom of the parent element's children instead of from the top.
104+
> [Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-child) about the `:nth-last-child` pseudo-class. It works similar to `:nth-child`, but starts from the bottom of the parent element's children instead of from the top.
105105
106106
When we run this code, here's what we see:
107107

sources/academy/webscraping/web_scraping_for_beginners/crawling/filtering_links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ If you try this in Node.js instead of DevTools, you will not get the full URLs,
105105

106106
Another common way to filter links (or any text, really) is by matching patterns with regular expressions.
107107

108-
> [Learn more about regular expressions](https://javascript.info/regexp-introduction)
108+
> [Learn more about regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
109109
110110
When we inspect the product URLs, we'll find that they all look like the following:
111111

sources/academy/webscraping/web_scraping_for_beginners/data_extraction/browser_devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ By changing HTML elements from the Console, you can change what's displayed on t
6767

6868
![Chrome DevTools JavaScript command execution](./images/browser-devtools-console-commands.png)
6969

70-
> You can interact with the page in many more ways using the Console. If you want to dive deeper we recommend this [tutorial on documents](https://javascript.info/document). A web page in a browser is called a document.
70+
> In JavaScript, the web page is called `document`. From the Console you can interact with it in many ways. Go through [document basics](https://developer.mozilla.org/en-US/docs/Web/API/Document_object_model/Using_the_Document_Object_Model) to learn more.
7171
7272
## Next up {#next}
7373

sources/academy/webscraping/web_scraping_for_beginners/data_extraction/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ Every web scraping project starts with some detective work. To a human, it's com
1818

1919
For the browser to be able to show you the web page with all its text and images, the data needs to be present somewhere. This data source is called HTML (HyperText Markup Language) and it gets downloaded to your computer whenever you open a website. If you want to extract data from a website, you need to show your computer where to find it in the HTML.
2020

21-
> To learn about HTML, we recommend browsing the [MDN tutorials on HTML](https://developer.mozilla.org/en-US/docs/Web/HTML).
21+
> To learn more about markup, we recommend the [resources about HTML](https://developer.mozilla.org/en-US/docs/Learn/HTML) provided by MDN, the official documentation of the web.
2222
2323
## CSS {#css}
2424

25-
CSS (Cascading Style Sheets) is a markup language that is used to give websites their style. It controls shapes, colors, positioning and even animations. The style is then added to the page's HTML and together, they define the page's content and structure. In web scraping, we can leverage CSS to find the data we want using CSS selectors.
25+
CSS (Cascading Style Sheets) is a language that is used to give websites their style. It controls shapes, colors, positioning and even animations. The style is then added to the page's HTML and together, they define the page's content and structure. In web scraping, we can leverage CSS to find the data we want using CSS selectors.
2626

27-
> Find more information on CSS and CSS selectors in the [MDN tutorials on CSS](https://developer.mozilla.org/en-US/docs/Web/CSS).
27+
> To learn more about styles and selectors, we recommend the [resources about CSS](https://developer.mozilla.org/en-US/docs/Learn/CSS) provided by MDN, the official documentation of the web.
2828
2929
## JavaScript {#javascript}
3030

3131
HTML and CSS give websites their structure and style, but they are static. To be able to meaningfully interact with a website, you need to throw JavaScript into the mix. It is the language of the web, and you don't need to be a programmer to learn the basics. You don't even need any special software, because you can try it right now, in your browser.
3232

33-
> If you want to dive deeper into JavaScript, check out [this great tutorial](https://javascript.info/).
33+
> To learn more about programming in browser, we recommend the [resources about JavaScript](https://developer.mozilla.org/en-US/docs/Learn/JavaScript) provided by MDN, the official documentation of the web.
3434
3535
## Next up {#next}
3636

sources/academy/webscraping/web_scraping_for_beginners/data_extraction/node_js_scraper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ console.log(html);
3232

3333
Now run the script using the `node main.js` command from the previous lesson. After a brief moment, you should see the page's HTML printed to your terminal.
3434

35-
> `gotScraping` is an `async` function and the `await` keyword is used to pause execution of the script until it returns the `response`. [Learn more about `async` and `await`](https://javascript.info/async-await)
35+
> `gotScraping` is an `async` function and the `await` keyword is used to pause execution of the script until it returns the `response`. If you're new to this, go through an [introduction to asynchronous JavaScript](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous).
3636
3737
## Parsing HTML {#parsing-html}
3838

sources/academy/webscraping/web_scraping_for_beginners/data_extraction/using_devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const products = document.querySelectorAll('.product-item');
9292
const subwoofer = products[2];
9393
```
9494

95-
> If you're wondering what an array is or what `products[2]` means, learn more in [this tutorial on JavaScript arrays](https://javascript.info/array).
95+
> If you're wondering what an array is or what `products[2]` means, read the [JavaScript arrays basics](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Arrays).
9696
9797
Now that we have the subwoofer saved into a variable, run another command in the Console to print its text:
9898

sources/academy/webscraping/web_scraping_for_beginners/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This is what you'll learn in the **Web scraping for beginners** course:
4141

4242
You don't need to be a developer or a software engineer to complete this course, but basic programming knowledge is recommended. Don't be afraid, though. We explain everything in great detail in the course and provide external references that can help you level up your web scraping and web development skills. If you're new to programming, pay very close attention to the instructions and examples. A seemingly insignificant thing like using `[]` instead of `()` can make a lot of difference.
4343

44-
> If you don't already have basic programming knowledge and would like to be well-prepared for this course, we recommend taking a [JavaScript course](https://www.codecademy.com/learn/introduction-to-javascript) and learning about [CSS Selectors](https://www.w3schools.com/css/css_selectors.asp).
44+
> If you don't already have basic programming knowledge and would like to be well-prepared for this course, we recommend learning about [JavaScript basics](https://developer.mozilla.org/en-US/curriculum/core/javascript-fundamentals/) and [CSS Selectors](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors).
4545
4646
As you progress to the more advanced courses, the coding will get more challenging, but will still be manageable to a person with an intermediate level of programming skills.
4747

0 commit comments

Comments
 (0)