Total Pageviews

Thursday, 28 July 2022

BotBot

 A static page generator for search engines' bot.

Worker

cp config.example.js config.js
vi config.js # Edit the config file

server-side

npm run server

client-side (crontab)

npm run client

Tools

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