Books bot for Line
- greeting
input: 固定文言
ex. hi, こん - category ranking
input: Booksジャンル名
ex. DVD - similar item
ex. 他には? - keyword search
input: キーワード + Booksジャンル名
ex. 乗馬の本ある?
brew install leveldb mecab mecab-ipadic
apt-get install mecab mecab-ipadic-utf8
sudo apt-get install python3-dev libpng-dev libfreetype6-dev libblas-dev liblapack-dev libatlas-base-dev gfortran
pip install flask requests mecab-python3 gensim pymysql
./init.py
python src/linebot.py
gcloud config set project fuj-web
gcloud config set compute/zone us-west1-b
gcloud compute copy-files py-booksbot shrimp:~/proj/
# https://cloud.google.com/compute/docs/gcloud-compute/#set_default_zone_and_region_in_your_local_client
# https://cloud.google.com/compute/docs/instances/transfer-files
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"events":[{}]}' https://fjmt.me/books_line_bot/linebot_webhook/message
brew install certbot
sudo apt-get install certbot python-certbot-apache -t jessie-backports
A 104.199.115.201
a2dissite 000-default-le-ssl
service apache2 reload
service apache2 restart
certbot renew
apt-get install mecab libmecab-dev mecab-ipadic-utf8 libleveldb-dev
sudo apt-get install libapache2-mod-wsgi-py3
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils
https://github.com/pyenv/pyenv/wiki/Common-build-problems