Install BeautifulSoup:
conda install bs4
Programming: create a file puppies.py
Scrape a Webpage for 25 Puppy Facts. Your task is to write a program that prints the 25 facts listed on the following webpage:
https://www.mentalfloss.com/article/536413/facts-about-puppies
There are 25 numbered facts on the page. The first is this:
1. THE WORD PUPPY HAS FRENCH ROOTS.
Your program should fetch the webpage at the link above, extract the 25 numbered facts, and print them. Use the examples on the lecture notes for today as your guide to scraping.
Required output:
1. THE WORD PUPPY HAS FRENCH ROOTS. 2. PUPPIES EVOLVED TO BE BLIND AND DEAF AT BIRTH. 3. PUPPIES HAVE BABY TEETH, TOO. 4. PUPPIES TAKE A LOT OF NAPS. ... ... (output continues to 25)
Submit your program to the online submission system under hw20-pups
submit -c=sd211 -p=hw20-pups puppies.py