A static page generator for search engines' bot.
Worker
cp config.example.js config.js
vi config.js # Edit the config fileserver-side
npm run serverclient-side (crontab)
npm run clientTools
oss-cli
./oss-cli.es put [cdn_path] [file] [mime-type]
./oss-cli.es update [cdn_path] [file] [mime-type]
./oss-cli.es refresh [cdn_path]
./oss-cli.es delete [cdn_path]browser
phantomjs browser.js [options] [url] [name]Then, it will generate HTML content and a screenshot to pages folder.
| Options | Description |
|---|---|
| --mobile | Set a mobile viewport |
| --screenshot | Take a screenshot |
from https://github.com/tengattack/botbot
No comments:
Post a Comment