Skip to content

Commit f07992e

Browse files
authored
feat: improve two images in the Python course (#1559)
- Addresses #1417 for the Python course - Nicer, higher-resolution intro image which features Warehouse and not Amazon
1 parent 42b2fd8 commit f07992e

File tree

6 files changed

+2
-12
lines changed

6 files changed

+2
-12
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,7 @@ document.querySelector('.product-item');
6565

6666
It will return the HTML element for the first product card in the listing:
6767

68-
![Using querySelector() in DevTools Console](./images/devtools-queryselector.png)
69-
70-
:::note About the missing semicolon
71-
72-
In the screenshot, there is a missing semicolon `;` at the end of the line. In JavaScript, semicolons are optional, so it doesn't make a difference here.
73-
74-
:::
68+
![Using querySelector() in DevTools Console](./images/devtools-queryselector.webp)
7569

7670
CSS selectors can get quite complex, but the basics are enough to scrape most of the Warehouse store. Let's cover two simple types and how they can combine.
7771

Binary file not shown.
55.9 KB
Loading
Binary file not shown.
309 KB
Loading

sources/academy/webscraping/scraping_basics_python/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ import DocCardList from '@theme/DocCardList';
1414

1515
In this course we'll use Python to create an application for watching prices. It'll be able to scrape all product pages of an e-commerce website and record prices. Data from several runs of such program would be useful for seeing trends in price changes, detecting discounts, etc.
1616

17-
<!--
18-
TODO image of warehouse with some CVS or JSON exported, similar to sources/academy/webscraping/scraping_basics_javascript/images/beginners-data-collection.png, which is for some reason the same as sources/academy/webscraping/scraping_basics_javascript/images/beginners-data-extraction.png
19-
-->
20-
21-
![E-commerce listing on the left, JSON with data on the right](./images/scraping.png)
17+
![E-commerce listing on the left, JSON with data on the right](./images/scraping.webp)
2218

2319
## What you'll do
2420

0 commit comments

Comments
 (0)