/python-beautifulsoup-newsarticles

This small application outputs the recent article titles and links on the Guardian's Health and Wellbeing Homepage, using the Python BeautifulSoup library

Primary LanguagePython

Basic Python Scraping Program

This program scrapes the Guardian Health and Wellbeing section for their current headlining articles in that topic. It uses requests to get the url and then BeautifulSoup to parse the html. It outputs a CSV file, with a list of titles and their respective url links.

Python Imports Used:

  • requests
  • BeautifulSoup
  • csv