Extracting Stock Data Using a Web Scraping:Python Project for Data Science (Applied Data Science Specialization) Answers 2025
1. Question 1
Content of the title attribute from the soup object?
-
✅
<title>Amazon.com, Inc. (AMZN) Stock Historical Prices & Data - Yahoo Finance</title> -
❌ (AMZN) Stock Historical Prices & Data – Yahoo Finance
-
❌ <b class=”Hidden”>Yahoo Finance</b>
Explanation:
The title tag shows the full HTML <title>...</title> content.
2. Question 2
Correct column names of the dataframe?
-
❌ ‘Date’, ‘Open’, ‘High’, ‘Low’
-
✅ ‘Date’, ‘Open’, ‘High’, ‘Low’, ‘Close’, ‘Volume’, ‘Adj Close’
-
❌ ‘Date’, ‘Open’, ‘High’, ‘Low’, ‘Close’, ‘Volume’, ‘Adj Close’, ‘max’, ‘min’
Explanation:
Yahoo Finance historical data includes 7 columns.
3. Question 3
Open value of the last row in amazon_data?
-
❌ 3,242.36
-
❌ 717.32
-
✅ 656.29
Explanation:
The last row corresponds to the earliest date, showing the Open price of 656.29.
🧾 SUMMARY TABLE
| Q | Correct Answer | Key Concept |
|---|---|---|
| 1 | Full <title> content |
HTML parsing |
| 2 | 7 standard Yahoo Finance columns | DataFrame structure |
| 3 | 656.29 | Historical stock Open price |