Skip to main content
Contents Index
Search Book
Search Results:
No results.
Read aloud
Readability settings Prev Up Next Scratch ActiveCode Profile
title here
\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 14.11 Code writing activity part 3
On this page, you will complete the final activity to write code that:
Scrapes all the comments on the Rate My Professor page for Prof. Ericson and Prof. Oney and prints them
You can see that both the pages have the same layout.
Figure 14.11.1. Prof. Ericson’s Rate My Professor page
Figure 14.11.2. Prof. Oney’s Rate My Professor page
The comments all have the same tag name, which is ’div’ tag with class=’Comments__StyledComments-dzzyvm-0 dvnRbr’. Here’s what it looks like when you inspect Prof. Ericson’s page:
Figure 14.11.3. Inspecting the tags on the Rate My Professor page
Here is the code that you assembled from the plans. Now that you’ve assembled the correct plans, fill in the blanks to complete the code.
Activity 14.11.1 .
Fill in the blanks to complete the code:
You have attempted
of
activities on this page.