Skip to main content

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.

Source Distribution

drudge_parser-1.0.tar.gz (1.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page