Sin descripción

Mohidul Islam 5dfd4f6c77 fix a small bug in yelp scrapping hace 4 años
analytics 8efcc47d1e fixed typo in email subjects hace 4 años
dashboard 57b948649d filter comment before storing hace 4 años
facebook_app e92ead1645 link added to the facebook review hace 4 años
gauth 921dff18b3 added manager app hace 4 años
manager 2fb280ab71 added if no review found in manager review list hace 4 años
media cf6c505575 added word cloud to manager review list page hace 4 años
name_extractor 79437a1a3f Remove yelp hace 4 años
nlu_job 86fd6c77db Change ner model with a url of ner server hace 4 años
review 8efcc47d1e fixed typo in email subjects hace 4 años
review_automation 57b948649d filter comment before storing hace 4 años
static f922e59a8d Update sql file hace 4 años
static_root 9d90886dc5 shown all replies to the frontand hace 5 años
user 7da4fccd74 Added review filter for manager page hace 4 años
yelp 5dfd4f6c77 fix a small bug in yelp scrapping hace 4 años
.gitignore cf6c505575 added word cloud to manager review list page hace 4 años
README.md 8d6d46db79 Structure settings and wsgi for development and production environment hace 5 años
client_secrets.json 575b45840a Change the client_secret.json file with mybusiness secret info hace 5 años
manage.py c2f3d7d8c6 Fixes an existance issue hace 5 años
requirements.txt fcb021bbbd changed yelp scrapper library beautifulsoup to mechanicalsoup hace 4 años
review_automation.sql 57b948649d filter comment before storing hace 4 años

README.md

Byte Trek Reputation Management

Installation:

1. Clone The reporsitory

➜  git clone http://bytetrek.com:30000/ByteTrek-Projects/review-automation-backend.git

2. Create a virtual environment and active it.

➜  python3 -m venv env
➜  source env/bin/activate

3. Create a mysql database and import the .sql file

(env) ➜  mysql -u root -h localhost -p                 # mysql -u user -h host -p
mysql> CREATE DATABASE review_automation;
mysql> SHOW DATABASES;                                 # Make sure database is created or not.
exit                                                   # Exit out of the mysql prompt
(env) ➜  mysql -u root -p review_automation < review_automation.sql
# Make sure everything is just fine.
(env) ➜  mysql -u root -h localhost -p
mysql> USE review_automation;
mysql> SHOW TABLES;

4. Run the development server

(env) ➜ python manage.py runserver --settings=review_automation.settings.dev

5. Add all corn jobs

(env) ➜ python manage.py crontab add --settings=review_automation.settings.dev
# Make sure corn job has added successfully
(env) ➜ crontab -l                                     # Return list of cronjobs

6. Some usefull management command

  • Store all un-recorded reviews to the database.

    (env) ➜ python manage.py collect_reviews --settings=review_automation.settings.dev
    
    • Get model prediction report.

      (env) ➜ python manage.py model_report n_days
      # Example for last 30 days:
      (env) ➜ python manage.py model_report 30 --settings=review_automation.settings.dev