
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
mediacloud-news-client
Advanced tools
🚧 under construction 🚧
A simple client library to access the Wayback Machine news archive search.
NB: TBD
pip install mediacloud-news-client
Counting matching stories:
from mcnews.searchapi import SearchApiClient
import datetime as dt
api = SearchApiClient("mediacloud")
api.count("coronavirus", dt.datetime(2022, 3, 1), dt.datetime(2022, 4, 1))
Paging over all matching results:
from mcnews.searchapi import SearchApiClient
import datetime as dt
api = SearchApiClient("mediacloud")
for page in api.all_articles("coronavirus", dt.datetime(2022, 3, 1), dt.datetime(2022, 4, 1)):
do_something(page)
Install the dependencies for dev: pip install -e .[dev]
pytest
to make sure all the test passmcnews/__init__.py
python setup.py sdist
to create an installation packagetwine upload --repository-url https://test.pypi.org/legacy/ dist/*
to upload it to PyPI's test platformtwine upload dist/*
to upload it to PyPIexpanded
results, and more integration testingpaged_articles
method to allow paging over all resultsurl
field searcharticle
endpoint, test case for fetching content (snippet
) via article_url
propertyFAQs
Mediacloud news archive search api client
We found that mediacloud-news-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.