Skip to content

Commit d698aa9

Browse files
authored
Merge pull request #1020 from honzajavorek/honzajavorek/fix-code-markup
fix: three small corrections in markup and code
2 parents c8f65a7 + 5173261 commit d698aa9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sources/academy/webscraping/advanced_web_scraping/tips_and_tricks_robustness.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Make sure your [CSS selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/
106106
- Use element attributes with the **lowest probability of a future change**.
107107
- Completely **avoid or strip** selectors of values that are clearly **random**.
108108
- Completely **avoid or strip** selectors of values that are clearly **flexible**.
109-
- **Extend low-specificity** selectors to reduce the probability of **collisions****.
109+
- **Extend low-specificity** selectors to reduce the probability of **collisions**.
110110

111111
Below is an example of stripping away too-specific parts of a selector that are likely random or subject to change.
112112

sources/academy/webscraping/puppeteer_playwright/executing_scripts/injecting_code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const msg = await page.evaluate(() => returnMessage());
119119

120120
console.log(msg);
121121

122-
await page.waitForTimeout(20000);
122+
await page.waitForTimeout(10000);
123123
await browser.close();
124124
```
125125

sources/academy/webscraping/web_scraping_for_beginners/challenge/modularity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ await crawler.run();
102102
log.info('Crawl finished.');
103103
```
104104
105-
One of the main reasons we **modularize** our code is to prevent massive and difficult to read files by separating concerns into separate files. In our **main.js** file, we're handling the initialization, configuration, and running of our crawler. In **routes.js**, we determine how the crawler should handle different routes, and in **consts.js** we define non-changing values that will be used throughout the project.
105+
One of the main reasons we **modularize** our code is to prevent massive and difficult to read files by separating concerns into separate files. In our **main.js** file, we're handling the initialization, configuration, and running of our crawler. In **routes.js**, we determine how the crawler should handle different routes, and in **constants.js** we define non-changing values that will be used throughout the project.
106106
107107
Organized code makes everyone happy, including you - the one developing the scraper! Spaghetti is super awesome, [but not when it comes to programming](https://www.urbandictionary.com/define.php?term=spaghetti+code) 🍝
108108

0 commit comments

Comments
 (0)