Home

Awesome

中文文档

This project is being rewrite, maybe is unavailable currently.

hiprice-chatbot

Chatbot for HiPrice.

HiPrice

HiPrice is a wechat bot for personal account.

It receives product links and crawls regularly, you will be notified when its price goes up/down.

I have already deployed such a bot, if you want to use this price notification service or have a look, add wechat friend hiprice001.

Currently it supports the following websites:

Docker

// build
docker image build -f Dockerfile -t hiprice-chatbot .

// run
docker container run -d --name hiprice-chatbot -p 6200:6200 --link mariadb:mariadb --link beanstalk:beanstalk hiprice-chatbot

// if you do not want to build yourself, a default image is ready in use
docker container run -d --name hiprice-chatbot -p 6200:6200 --link mariadb:mariadb --link beanstalk:beanstalk wf2030/hiprice-chatbot:0.1.0

MariaDB

Image: wf2030/mariadb:10.3, or you can build it yourself in mariadb directory.

Run: docker container run -d --name mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root wf2030/mariadb:10.3

Beanstalk

Image: wf2030/beanstalk:1.11, or you can build it yourself in beanstalk directory.

Run: docker container run -d --name beanstalk -p 11300:11300 wf2030/beanstalk:1.11

Tips

Currently the whole project has 4 sub projects(now is refactoring):

You may need the docker-compose that lauches all services in one step, the docker-compose does not contain hiprice-runner, compiles and runs it manually.

While all services get up, go to http://localhost:6200/admin to get your wechat bot login, and then congratulations, your bot is working! Send it "help" to see how to play.

Warning: wechat bot uses remark as persistent scheme, it will remark all your contacts with sequence number while you login, that means all your remarks before will be lost and can not restore, use it in caution(you can use my bot service hiprice001 for testing purpose, or you can apply a new account).