Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question

use python

Web Scraping

A marketing company would like to know if varsity (college) swimmers are (on average) taller than their volleyball counterparts. You have been asked to create a data driven solution in order to answer this question.

The following web pages contain the roster of the Bearcats’ men’s and women’s swimming and volleyball teams.

Men’s Swimming Team

https://athletics.baruch.cuny.edu/sports/mens-swimming-and-diving/roster

Men’s Volleyball Team

https://athletics.baruch.cuny.edu/sports/mens-volleyball/roster

Women’s Swimming Team

https://athletics.baruch.cuny.edu/sports/womens-swimming-and-diving/roster

Women’s Volleyball Team

https://athletics.baruch.cuny.edu/sports/womens-volleyball/roster

The height of each player is listed on all web pages.
1. Scrape the heights of all the players on the men’s swimming team and find the average.

2. Scrape the heights of all the players on the men’s volleyball team and find the average.

3. Scrape the heights of all the players on the women’s swimming team and find the average.

4. Scrape the heights of all the players on the women’s volleyball team and find the average.

5. Compare the averages between the two men’s teams. Write a few lines about your findings.

6. Compare the averages between the two women’s teams. Write a few lines about your findings.

7. Are you able to determine whether, in general, if the average swimmer is taller than the

average volleyball player? Write a few lines about your findings.

Hints:
Inspect the html on each page listed above. Determine which ​tag​​and ​class​ ​point to the players’ heights. Configure your web scraper accordingly. Follow the steps used in: https://github.com/avinashjairam/avinashjairam.github.io/blob/master/project_example.ipynb

After you have scraped the heights and have stored them in different lists, you ​may ​have to convert the data (the heights) from strings to a numeric type (and then perhaps to centimeters or meters?) to find the average.

Note:
The tasks listed here ​span​ ​many different topics in python. (There’s a huge clue in the previous sentence!)

Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education