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 details)

Uploaded Source

File details

Details for the file drudge_parser-1.0.tar.gz.

File metadata

  • Download URL: drudge_parser-1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for drudge_parser-1.0.tar.gz
Algorithm Hash digest
SHA256 9f2a953362213e07d9c831357b3912597af6f98245bdd645b8b517fe59cbe0d8
MD5 f556ee7405491ecbd28483279f4a76dd
BLAKE2b-256 7b43143033bedb4257cf79d35a4242b135c55eb24a63ad6ba322e3625f04e2bd

See more details on using hashes here.

Supported by

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