Code Monkey home page Code Monkey logo

vladsavin95 / thesis_googleplaystore_web-review_scraper_project Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 190.45 MB

This Project is part of my MSc. In Digital Marketing and Data Science Thesis at emlyon business school

HTML 98.85% JavaScript 0.22% Python 0.55% Shell 0.01% Roff 0.01% Jupyter Notebook 0.37%
scraping-websites python html flask-application sentiment-analysis sentiment-classification jupiter vadersentiment beautifulsoup4 matplotlib

thesis_googleplaystore_web-review_scraper_project's Introduction

GooglePlayStore_Review_Scraper_Project

Back-End Explanation

This is the set of instructions that will need to be followed for the scarapper to work.

  1. make sure you have all the needed libraries installed To intall libraries use "pip install libraryname" Suggested libraries to install: matplotlib;numpy; beautifulsoup4; selenium; vaderSentiment; wordclou; nltk. Versions: matplotlib==3.3.1 numpy==1.19.3 beautifulsoup4==4.9.3 selenium==3.141.0 vaderSentiment==3.3.2 wordcloud==1.8.1

  2. Open the notebook Main in Jupiter or any other channel you use.

  3. Open config file here you can do the following:

    -JSON Config Should like this after changes: { "link": "https://play.google.com/store/apps/details?id=com.sololearn.python&showAllReviews=true", "show_more_count": 2, "background_color": "black", "mask": "img/love.png", "max_words": 200 }

    • wordcloud colour: make sure you choose a colour that suits you best (recommended not black)

    • mask: in "img" folder you can find all the masks to change how the wordcloud looks like

    • max_words: Currently there are just 200 words selected to appear in a wordcloud. You can increase or decrease. IMPORTANT: don't forget to save changes if not the script will give an error or not the right information will be scrapped

    ####Now you can run the app on the Jupiter Notebook.

4: Run script. Once you run at the bottom check for: Input filename results. In the box input the name of the app you are scrapping (THIS IS VERY IMPORTANT WHEN OVERVIEWING THE RESULTS - Point 5) (However this feature is hidden) - make sure you input the app name

- Chrome browser will open and the scrolling will start. IMPORTANT: make sure you keep Chrome in full screen mode like it opened

- Chrome when finished will automatically close

- Displayed message: "wait 5 seconds to next scroll" this is when the "Show More reviews" botton is clicked

- the script will run for approximatively 2 minutes. 
  1. Output: Result will show in output section of Jupiter section.

    • They will be stored in results directory by "filename_postive/negative/neutral/histogram/analyze results"
    • Result folder: Wordclouds, historgram and txt file with the sentiment analysis per sentance
  2. Blocked Words: Open blocked.txt file to add or delete blocked words (Make sure you are writting them correctly)

Additional information: main.py file is the base file for the script to run in PowerShell (if wanted); main.py will be used for the front-end (please check ReadMe file in front-end folder);

Chromedriver files - should not be tampered with;

temporary folder: - sentiment_analysis.py file: This is where the sentiment analysis code is located - "sentance" variable: VADER learn differentiation between pos, net and neutral sentances and words - temp.py file:script for scraping reviews and ordering them test.py and Test.ipynb files (same):checking script

Python 3 script running by using PowerShell

Download python3.8.2 from https://www.python.org/downloads/release/python-382/ and install downloaded exe file Check your OS before downloading

Go to project directory config file (see section 2)

Install requirements: ‘py.exe -m pip install -r .\requirements.txt’ . wait until finished. (this step need run 1 time only to install requirements libraries needed.

Run: ‘py.exe .\main.py’ to start scraping. This step the chrome browser opens automatically. let it process

You can see the results in "results" directory.

thesis_googleplaystore_web-review_scraper_project's People

Contributors

vladsavin95 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.