Naive parser for the Drudge Report
Project description
A pretty simple parser for [Drudge Report](http://drudgereport.com). I find the site impossible to look at and wanted a way to more easily digest the information, as I like to keep tabs on lots of differing news outlets.
## Installation
PyPI
pip install drudge_parser
Note: This is only compatible with Python3+ (they added context manager support to [urlopen](https://docs.python.org/3.5/library/urllib.request.html#module-urllib.request) in the stdlib)
## Usage
import drudge_parser
# scrape_site is a generator of (Article, Image) articles = drudge_parser.scrape_site()
- for article, image in articles:
# image may be None, if none was found that is considered as # related to the article. In many cases, the same image will # be yielded for multiple articles. print(article, image)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.