News classification and insights combining MonkeyLearn and Kimono
Jupyter Notebook Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
notebook
README.md
al_jazeera_raw.json
bbc_raw.json
china_daily_raw.json
cnn_raw.json
fox_raw.json
requirements.txt
stitch.py

README.md

(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-categorizer-post

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.

What's included

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.
  • notebook/
    • *.json - the data to analyze.
    • News.ipyn - an IPython notebook that will classify, process and graph the data.

How to run the notebook

  1. Clone this repository.
  2. Navigate to the root directory of the repository.
  3. Install the dependencies with pip install -r requirements.txt.
  4. Navigate to the notebook directory.
  5. Do ipython notebook.