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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.