Assuming as a working employee of Restaurant registered in Zomato, Employee should be able to receive the alert in form of a Mail when a Negative Feedback is written in Zomato!
Python Shell
Mysql Database
Sendgrid
Affin.txt
Zomato Valid API Key And Access to zomato
To write and execute python programs.
To store the logs that are passed from the python program.
To send mail to receipt whenever a negative feedback is generated.
To compare the text review from zomato and assign a sentiment value to the review text.
Please find "AFFIN.txt" in the repository.
To fetch the ratings and review text for analysis.
ref: https://developers.zomato.com/
To schedule a python.py execution task at regular interval of time.
Its a Python Library to schedule python task.
Open Terminal -> type 'python' -> Python Shell opens
Open New Terminal -> Start Mysql Server -> Switch to root or new user
-> Create Database Zomato
-> use Zomato
-> Create Table ZomatoFeedback(PythonLine VARCHAR(500))
Register Sendgrid -> Generate Sendgrid API Key
Install Pip(Python Package Index) -> Using pip install sendgrid
Register in Zomato Developers -> Generate API KEY
cmd: /usr/local/mysql/support-files/mysql.server start
switch to user: mysql -u root
cmd: sudo easy_install pip
cmd: pip install sendgrid
cmd: sudo pip install apsheduler
Sendgrid will block the mail id, if it finds it invalid or spam. Kindly change the mail id in sendmail() function