Skip to content

robbiejaeger/tone-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

14er Tone Analyzer

This application goes through 14er hiking trip reports and analyzes the tone of the reports, grouped by peak.


Technology

Tone Analyzer

The Watson Natural Language Processing API is used for the tone analysis.

Web Scraping

The nightmare JavaScript library was used for web scraping. The web scraping files are in the scrapers directory, and the raw data from web scraping is in the data directory.

Usage

If you want to run this code on your own, then you will have to create an IBM Watson API account, get your API keys, and set them as environment variables (WATSON_USERNAME and WATSON_PASSWORD as seen in the analyzer.js file). For this, I like to use the npm package dot-env. Once you have those environment variables set up:

  1. Change into the tone-analyzer directory root level.

  2. Scrape data from the trip report sites using the command node scrapers/trip-reports.js in your terminal.

  3. Analyze the trip report data using the command node analyzer.js from your terminal.

  4. To view sorted tone data, there is a sample script you can run from your terminal: node results/sort-peaks.js

Acknowledgments

Thanks to this blog post, which helped guide me through using async/await with Nightmare.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published