npm install -g git+https://github.com/viasite/site-audit-seo.git --unsafe-perm
For build you should symlink site-audit-seo-viewer
to data/front
directory.
For me:
ln -s $HOME/projects/js/site-audit-seo-viewer $HOME/projects/site-audit-seo/data/front
Then:
docker-compose build
docker-compose up -d
{
"name": "site-audit-seo-export-influxdb",
"site-audit-seo": {
"plugins": {
"export-influxdb": {
"main": "sendToInfluxDB.js",
"type": "afterScan",
}
}
}
}
function afterScan(jsonPath, options) {
const jsonRaw = fs.readFileSync(jsonPath);
const data = JSON.parse(jsonRaw);
}
module.exports = afterScan;
{
"name": "site-audit-seo-export-influxdb",
"site-audit-seo": {
"plugins": {
"readability": {
"main": "readability.js",
"type": "afterRequest",
"fields": [
{
"name": "readability_time",
"comment": "Читать, секунд?",
"comment_en": "Reading, time",
"groups": ["readability"],
"type": "integer"
}
]
}
}
}
}
function afterRequest(result, options) {
result.newField = 123;
}
module.exports = afterRequest;
See core plugins at src/plugins.
plugins
- launch depends of plugin type:afterScan
,afterRequest
, for export data, send notifications and so on
You can install plugins with npm
to data
directory.
- Extractors data from page
- Analyze html of page
- Actions after scan (implemented)
- Command line arguments