14.7.3. 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.
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:
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.