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.9 Code writing activity part 1
On this page, you will complete an activity to write code that:
Scrapes all the comments on the Rate My Professor page for Prof. Ericson and Prof. Oney and prints them
Figure 14.9.1. Prof. Ericson’s Rate My Professor page
Figure 14.9.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’.
Figure 14.9.3. Tags for the comments on the Rate My Professor page
Activity 14.9.1 .
Choose which of the following plans you will use, and put them in the correct order.
Plan #3: Get a soup from multiple webpages
---
Plan #2: Get a soup from a webpage #distractor
---
Plan #5: Get info from all tags of a certain type
---
Plan #4: Get info from a single tag #distractor
---
Plan #6: Get info from all tags of a certain type, within another tag #distractor
---
Plan #9: Print info
---
Plan #10: Store info in a json file #distractor
You have attempted
of
activities on this page.