(Note that this is an old repo, the code here is using the now deprecated API v1. We recommend you use the official python API client: https://github.com/monkeylearn/monkeylearn-python)
News classification and insights combining MonkeyLearn and Kimono
This post shows you how to combine the power of Kimono and Monkeylearn to scrape news sites and analyze articles in order to gain insights on the different news outlets as well as what's happening around us.
This repository includes:
stritch.py- a script that takes the raw data downloaded from Kimono and outputs a JSON with nicer data to work with.
*_raw.json- the raw data from Kimono to give
stitch.py, and what was used to write the post. The processed data is also included, so processing the raw data is not needed.
*.json- the data to analyze.
News.ipyn- an IPython notebook that will classify, process and graph the data.
How to run the notebook
- Clone this repository.
- Navigate to the root directory of the repository.
- Install the dependencies with
pip install -r requirements.txt.
- Navigate to the