Our goal: Print out the headlines from the IRE home page.
requests is a handy third-party library for making HTTP requests. It does the same thing your browser does when you type in a URL and hit enter -- sends a message to a server and requests a copy of the page -- but it allows us to do this programatically instead of pointing and clicking. For our purposes today, we're interested in the library's get() method.
In [ ]:
In [ ]:
# use the `get()` method to fetch a copy of the IRE home page
# feed the text of the web page to a BeautifulSoup object
In [ ]:
# get a list of headlines we're interested in
In [ ]:
In [ ]: