EvaluateReview
EvaluateReview is a simple web scraper designed to detect inorganic overly positive reviews.
Online reviews have become critical to market success, and nothing puts customers off quite like fake reviews and rating systems ripe with abuse. This service is intended to weed out fakers at the high end of the review scale. It will attempt to detect and flag the top three most “overly positive” reviews and alert the user via log messages. Although tailored specifically for dealerrater.com, EvaluateReview can be used to scrape any review site if the selectors are narrow enough. It has been tested against glassdoor.com.
Installation
If available in Hex, the package can be installed
by adding evaluate_review to your list of dependencies in mix.exs:
def deps do
[
{:evaluate_review, "~> 0.1.0"}
]
endTesting
In order to be both courteous and more discrete, testing is configured to use an archived copy of dealerrater.com served from archive.org. Tests can be run with
mix test ./test/Cache dependent tests are excluded by default, warm up your cache by running the default tests. Then include the cache dependent ones with –include needs_cache
mix test ./test --include needs_cacheTests reliant on external sites beyond archive.org are excluded by default, to run them
mix test ./test --include externalRunning
To run the application, invoke the ./run.exs script with mix
mix run ./run.exsNote: the first run will download data from dealerrater.com all subsequent runs will use a cached version of the relevant data saved in the .cache/ directory unless said data is manually cleared
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/evaluate_review.