Skip to main content

scoopy

A Python interface to live news: current headlines and news search behind one function, whichever service answers.

pip install scoopy
from scoopy import headlines

headlines()  # ['Coup-hit Niger was betting on a China-backed oil pipeline ...', ...]

headlines() reads the Yahoo Finance front page, so it needs no API key.

search_news(query, source=...) searches a news service and returns what it found:

from scoopy import search_news

search_news("central bank", source="yahoo_finance")  # no key: the raw JSON of Yahoo Finance's search endpoint
search_news("central bank")                           # the default source, newsdata.io: a list of articles
source What it is Needs
"yahoo_finance_headlines" the Yahoo Finance front-page headlines (no query) nothing
"yahoo_finance" Yahoo Finance's unofficial search endpoint; pass newsCount=, quotesCount= and so on nothing
"newsdata" (the default) newsdata.io pip install newsdataapi, and your key in the environment variable NEWSDATA_API_KEY

A missing key raises a ValueError that names the variable. The Yahoo endpoints are unofficial and can change without notice.

Per-service functions

search_news dispatches to these, which you can also call directly: newsdata_search, yahoo_finance_news_search and yahoo_finance_headlines (headlines is its alias, kept so the source of headlines can change later without changing your code).

License

MIT

Metadata

Release files for scoopy 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scoopy 0.0.9
File Size Uploaded Provenance Actions
scoopy-0.0.9.tar.gz 20.3 kB Without provenance Details for scoopy-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scoopy 0.0.9
File Interpreter ABI Platform Actions
scoopy-0.0.9-py3-none-any.whl Python 3 none any Details for scoopy-0.0.9-py3-none-any.whl

Total release size: 27.3 kB

Release files / scoopy-0.0.9.tar.gz

Download URL scoopy-0.0.9.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c3974744cbe44d491a0df4987acd0274bf99d5fc5d17dc26937e9100d194b869
BLAKE2b-256 checksum
How to use checksums
12aaa41033b0ac9441588c852b14a668c93469e5e2e004007e9e958949860a0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / scoopy-0.0.9-py3-none-any.whl

Download URL scoopy-0.0.9-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d53615d33a1845743f7c18228d274601737bb641d4d6bd1ed0fb0d6d1901016
BLAKE2b-256 checksum
How to use checksums
2b7956512a2bb213cae75c36103eaadc23a8d38bd4aeb74ae237479d37756529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for scoopy 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page