Git Product home page Git Product logo

review_scraper's Introduction

ReviewScraper

Instructions

1. Redis Queue Managemant command Open a terminal and run 'rq worker'

2. Run Flask APP command Open another terminal and run 'export FLASK_APP=app.main:app && flask run --reload'

3. Create a MySQL database with one table

The table Schema:

review1( jod_id LONGTEXT, time LONGTEXT, filename LONGTEXT, retailer VARCHAR(10), url LONGTEXT, status LONGTEXT)

  1. Specify the db credentials in "mysql_connection.py" and "main.py"(inside fetch function) files

The app has two-fold functionality as mentioned below.

  1. Natural Language Processing (NLP):- Binary Sentiment Classification model developed in python. Used libraries like NLTK, Sci-kit learn etc. Used customer review data obtained from PAXCOM (from internal client) as a training dataset. This had around 1lakh reviews of Kimberly-Clark products. Employed various mechanisms like TF-IDF and Topic Modelling, to find the most frequently occurring features in a negative review. Employed Naïve Bayes Classifier and Logistic Regression algorithms to predict the Sentiment.
  2. Web Scraping The user should provide the URL of the product and the retailer name. On clicking “get Review” button the customer reviews of that product are downloaded as a CSV file. This file can then be uploaded to the Sentiment Analysis part of the app which will produce an output with the respective Sentiment scores of all the reviews.

UI Looks like this : - image image

The methodology diagram is as follows: - image

The Machine Learning model is saved in a pickle file - model.pkl. It is uses the Naive Bayes algorithm for Sentiment Classification. NLP techniques such as Lemmatization, TF-IDF, n-grams and Negation Handling have been incorporated.

review_scraper's People

Contributors

maheshavel avatar utkarshredd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.