This Python script allows the user to search for a particular product. It finds user reviews (by using Amazon Product Search API and some web scraping), and performs sentiment analysis on them. It finally returns user satisfaction score, which lets the user decide his next purchase more quantitatively.
Using the Amazon Product Search API and some web scraping,all reviews of the search product are obtained in JSON
The JSON is parsed and sentiment analysis performed
This tells the user about any product without even looking it up online
Copy the bottle.py and the amazon_scraper.py files to your local machine and run
python bottle.py
Enter product name:iphone 6
- Gives a list of top 5 items related to the keyword and list of reviews
- Each review is accompanied by a sentiment analysis of the review in '%' format
- Every product also has a final analyis score which can help the user in choosing the right product
- TextBlob
- NLTK
- Amazon product API
- Bottlenose API
- JSON
- BeautifulSoup
- lxml
- pprint
- requests
install missing dependencies using pip