@@ -19,9 +19,7 @@ var parser = require('horseman-article-parser');
19
19
20
20
var options = {
21
21
url: "https://www.theguardian.com/politics/2018/sep/24/theresa-may-calls-for-immigration-based-on-skills-and-wealth",
22
- lighthouse: {
23
- enabled: true
24
- }
22
+ enabled: ['lighthouse', 'screenshot', 'links', 'sentiment', 'entities', 'spelling', 'keywords']
25
23
}
26
24
27
25
parser.parseArticle(options)
@@ -68,7 +66,6 @@ The options below are set by default
68
66
69
67
```
70
68
var options = {
71
- userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36',
72
69
// puppeteer options (https://github.com/GoogleChrome/puppeteer)
73
70
puppeteer: {
74
71
headless: true,
@@ -89,11 +86,7 @@ var options = {
89
86
uppercaseHeadings: true
90
87
},
91
88
// retext-keywords options (https://ghub.io/retext-keywords)
92
- retextkeywords: { maximum: 10 },
93
- // lighthouse options (https://github.com/GoogleChrome/lighthouse)
94
- lighthouse: {
95
- enabled: false
96
- }
89
+ retextkeywords: { maximum: 10 }
97
90
}
98
91
```
99
92
@@ -107,14 +100,12 @@ var options = {
107
100
}
108
101
```
109
102
110
- If you want to enable lighthouse analysis pass the following
103
+ If you want to enable the advanced features you should pass the following
111
104
112
105
```
113
106
var options = {
114
107
url: "https://www.theguardian.com/politics/2018/sep/24/theresa-may-calls-for-immigration-based-on-skills-and-wealth",
115
- lighthouse: {
116
- enabled: true
117
- }
108
+ enabled: ['lighthouse', 'screenshot', 'links', 'sentiment', 'entities', 'spelling', 'keywords']
118
109
}
119
110
```
120
111
0 commit comments