GithubHelp home page GithubHelp logo

surya-murali / web-scraping-and-amazon-reviews-analysis Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 10.0 1.91 MB

A Web Scraping project to analyze product reviews in Amazon.com. A sentiment analysis is done and the reviews are sorted and highlighted in green or red based on the sentiment score.

Home Page: https://github.com/Surya-Murali/Web-Scraping-and-Amazon-Reviews-Analysis

R 86.01% HTML 13.99%
amazon amazon-reviews-analysis review sentiment-polarity sentiment-scores webscraping

web-scraping-and-amazon-reviews-analysis's People

Contributors

surya-murali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

web-scraping-and-amazon-reviews-analysis's Issues

Error in data.frame

Hey all,

first of all: Thank you for the development of this crawler! It should be a great help for my studies!

However, I get an error message when ultimately running the amazon_scraper command:

reviews <- amazon_scraper(doc, reviewer = F, delay = 2) #here comes the error message
#Hide Traceback

#Rerun with Debug
#Error in data.frame(title, author, date, ver.purchase, format, stars, :

arguments imply differing number of rows: 10, 0

3.

stop(gettextf("arguments imply differing number of rows: %s",

paste(unique(nrows), collapse = ", ")), domain = NA)

2.

data.frame(title, author, date, ver.purchase, format, stars,

comments, helpful, stringsAsFactors = F) at amazonscraper.R#57

1.

amazon_scraper(doc, reviewer = F, delay = 2)

Does somebody have a clue what the reason could be? I attach my script & environment, thank you!

Script_AmazonScraper.txt

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.