Skip to main content

Section 14.2 Get news links from faculty webpages

Let’s say that you want to get the link to the first news article on your favorite umsi faculty’s webpages.
Figure 14.2.1. News articles on faculty pages
But clicking through to gather all those links would be a pain. Fortunately, we can do that task with BeautifulSoup!
Run the code below to see what it collects.

Activity 14.2.1.

This code is made up of three plans. Click on each of the plans below to learn more about it.
Plan 3: Get a soup from multiple URLs plan3.html
Plan 4: Get info from a single tag plan4.html
Plan 9: Print info plan9.html
You have attempted of activities on this page.