This project demonstrates web scraping and XML parsing using Beautiful Soup in Python. It focuses on extracting death rates for suicide data from the U.S. Department of Health & Human Services. The data includes insights on sex, race, Hispanic origin, and age.
- Fetch XML data from the provided CDC API endpoint.
- Parse XML using Beautiful Soup to extract relevant information.
- Display extracted data in a user-friendly format.
- Python 3.x
- BeautifulSoup library
- Clone this repository:
git clone https://github.com/yourusername/your-repo-name.git
- Install the required libraries:
pip install beautifulsoup4 requests
- Run the script:
python main.py
(Optional: If you have any screenshots or visual representations of your project, you can include them here.)
- Data Source: U.S. Department of Health & Human Services - CDC
- Beautiful Soup: https://www.crummy.com/software/BeautifulSoup/
- Python Requests: https://docs.python-requests.org/en/latest/
This project is licensed under the Creative Commons Attribution 4.0 International License. You are free to use, modify, and distribute the code as long as you provide appropriate attribution.