Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onramplab/kenshoo
https://github.com/onramplab/kenshoo
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/onramplab/kenshoo
- Owner: OnrampLab
- Created: 2015-01-28T04:22:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T09:04:40.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T05:22:31.861Z (7 months ago)
- Language: PHP
- Size: 87.9 KB
- Stars: 1
- Watchers: 21
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kenshoo
This is a simply tool to update kenshoo csv every day.composer self-update
composer install1.Rename config_templete.php to config.php
2.Modify settings in config.php
3.Copy csv file which you want to upload in upload folder
4.Add a daily cron job as /usr/bin/php -q /var/kenshoo/controller.php >> /var/kenshoo/log.log#casperjs
- 安裝必要套件
```sh
sudo apt-get update
sudo apt-get install build-essential g++ flex bison gperf ruby perl \
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
libpng-dev libjpeg-dev
```### 請正確設定試算表時區
- [setting timezime](https://support.google.com/docs/answer/58515?hl=zh-Hant)### 使用 node 安裝 casperjs & phantomjs
```sh
sudo apt-get update
sudo apt-get install nodejs nodejs-legacymkdir -p /usr/developer-tool/casperjs
cd /usr/developer-tool/casperjsnpm install phantomjs
sudo ln -s /usr/developer-tool/casperjs/node_modules/phantomjs/bin/phantomjs /usr/bin/phantomjs
phantomjs -vnpm install casperjs
sudo ln -s /usr/developer-tool/casperjs/node_modules/casperjs/bin/casperjs /usr/local/bin/casperjs
casperjs --version
```### setting
```sh
cp casperjs/config/config-template.js casperjs/config/config.js
vi casperjs/config/config.js
```### run
```sh
casperjs casperjs/pinterest-login-and-download-csv.js
```### crontab
```sh
crontab -e
/usr/local/bin/casperjs /var/www/kenshoo/casperjs/pinterest-login-and-download-csv.js >> /var/www/kenshoo/tmp/casperjs.log
```### 啟動 worker
```sh
cd queue/
php failCall.gearman-worker.php &
or
/root/.phpbrew/php/php-5.6.*/bin/php -q failCall.gearman-worker.php &
```