Skip to content

Commit cf91359

Browse files
committed
refactor: use shorter names
1 parent d3238c1 commit cf91359

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /scraping-basics-javascript/downloading-html
88
import CodeBlock from '@theme/CodeBlock';
99
import LegacyJsCourseAdmonition from '@site/src/components/LegacyJsCourseAdmonition';
1010
import Exercises from '../scraping_basics/_exercises.mdx';
11-
import LegoExercise from '!!raw-loader!roa-loader!./exercises/scrape_lego.mjs';
11+
import LegoExercise from '!!raw-loader!roa-loader!./exercises/lego.mjs';
1212

1313
<LegacyJsCourseAdmonition />
1414

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /scraping-basics-javascript/parsing-html
88
import CodeBlock from '@theme/CodeBlock';
99
import LegacyJsCourseAdmonition from '@site/src/components/LegacyJsCourseAdmonition';
1010
import Exercises from '../scraping_basics/_exercises.mdx';
11-
import F1AcademyTeamsExercise from '!!raw-loader!roa-loader!./exercises/scrape_f1academy_teams.mjs';
11+
import F1AcademyTeamsExercise from '!!raw-loader!roa-loader!./exercises/f1academy_teams.mjs';
1212

1313
<LegacyJsCourseAdmonition />
1414

sources/academy/webscraping/scraping_basics_javascript/exercises/test.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ setup() {
33
}
44

55
@test "outputs the HTML with Star Wars products" {
6-
run npx node "$DIR/scrape_lego.mjs"
6+
run npx node "$DIR/lego.mjs"
77
[[ "$output" == *"Millennium Falcon"* ]]
88
}
99

1010
@test "outputs the number of F1 Academy teams" {
11-
run npx --package=cheerio node "$DIR/scrape_f1academy_teams.mjs"
11+
run npx --package=cheerio node "$DIR/f1academy_teams.mjs"
1212
[[ "$output" == "6" ]]
1313
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ slug: /scraping-basics-python/downloading-html
77

88
import CodeBlock from '@theme/CodeBlock';
99
import Exercises from '../scraping_basics/_exercises.mdx';
10-
import LegoExercise from '!!raw-loader!roa-loader!./exercises/scrape_lego.py';
10+
import LegoExercise from '!!raw-loader!roa-loader!./exercises/lego.py';
1111

1212
**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.**
1313

sources/academy/webscraping/scraping_basics_python/exercises/test.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ setup() {
33
}
44

55
@test "outputs the HTML with Star Wars products" {
6-
run uv run --with httpx python "$DIR/scrape_lego.py"
6+
run uv run --with httpx python "$DIR/lego.py"
77
[[ "$output" == *"Millennium Falcon"* ]]
88
}

0 commit comments

Comments
 (0)