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

Here is the link to Prof. Ericson's Rate My Professor page.

Here is the link to Prof. Oney's Rate My Professor page.

You can see that both the pages have the same layout.

Prof. Ericson's Rate My Professor page Prof. Ericson'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:

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.

Before you keep reading...

Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.

You have attempted 1 of 4 activities on this page