Skip to main content

A simple web scraper for Associated Press

Project description

APNews Web Scraper

This Python package, apnews, provides a simple way to scrape top news articles from the Associated Press website.

Installation

You can install apnews from PyPI:

pip install apnews

Usage

Here is an example of how to use apnews:

import apnews

articles = apnews.scrape_top_news()
for title, article in articles:
    print(title, article)

License

This project is licensed under the terms of the MIT license.

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

apnews-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

apnews-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file apnews-0.1.1.tar.gz.

File metadata

  • Download URL: apnews-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for apnews-0.1.1.tar.gz
Algorithm Hash digest
SHA256 51dd90cf874c2dbf2cec90ae501299565ab8204ab8c245d73bf1d85d0435aa53
MD5 b5bbfd255e5abdd3ae9fb706672d7444
BLAKE2b-256 5b7a3cf672eafb61c0c256e1aadcee431407ce0e479b16f73c6d50b013c4afda

See more details on using hashes here.

File details

Details for the file apnews-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: apnews-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for apnews-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 89db6c1df911e28a62597d14a30f1e73d7b141de5e8704f3e7eb3f4e785778d4
MD5 3ae026130c4adefe583275b3f7ae4d98
BLAKE2b-256 adef6d5d404c60dfb6d5596b1eec771bfb991638cd655389d19434af2fd1c730

See more details on using hashes here.

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