Skip to main content

News reader for Python

Project description

Scrape any news outlet

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

You can install the method by typing:

pip install ryder

Basic usage

import ryder

#: get all valid urls on the homepage
articles = ryder.source("https://lemonde.fr")

for article in articles[:5]:
    #: scrape content of the article
    # lang is True by default: whether to infer the language
    # of the article (using langdetect)
    news = ryder.read(article["url"], lang=True)
    print(news)

Authors

Maixent Chenebaux

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

ryder-0.0.3.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

ryder-0.0.3-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

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