Skip to main content

paginate through mediastack API data

Project description

This python library helps you use your mediastack API key to access data on the media stack API. No need to figure out how to paginate through the results this code does it for you.

pip install mediastackwrapper

import mediastackwrapper

To use this library import mediastackwrapper and call the function news_dataframe(), put your between dates, the keyword you are searching the news for, your mediastack API key.

import mediastackwrapper import pandas as pd

df = mediastackwrapper.news_dataframe(‘2022-1-1,2022-5-31’,’Keyword’,’your_api_key’)

It will return the results as a pandas dataframe. You will be able to run analysis using the pandas library.

Get Mediastack API key

https://mediastack.com?utm_source=FirstPromoter&utm_medium=Affiliate&fpr=christopher32

Change Log

0.0.1 (19/06/2022)

  • First Release

0.0.2 (19/06/2022)

  • Second Release

0.0.3 (19/06/2022)

  • Third Release

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

mediastackwrapper-0.0.3.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file mediastackwrapper-0.0.3.tar.gz.

File metadata

  • Download URL: mediastackwrapper-0.0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.0

File hashes

Hashes for mediastackwrapper-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9f72c8a3e8f0cbd5faa0362312aa463094b3e5c84d2f7c6adee13782831b460d
MD5 dfdd7da631ea3185f21ddc9ec182ee97
BLAKE2b-256 f6732ed6ae9b336b0f483bf44c5ea53a760f6885ad107bac19dd46202a998835

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