Skip to content

Commit af72da9

Browse files
committed
update readme
1 parent f5d080d commit af72da9

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ var parser = require('horseman-article-parser');
1919
2020
var options = {
2121
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']
2523
}
2624
2725
parser.parseArticle(options)
@@ -68,7 +66,6 @@ The options below are set by default
6866

6967
```
7068
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',
7269
// puppeteer options (https://github.com/GoogleChrome/puppeteer)
7370
puppeteer: {
7471
headless: true,
@@ -89,11 +86,7 @@ var options = {
8986
uppercaseHeadings: true
9087
},
9188
// 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 }
9790
}
9891
```
9992

@@ -107,14 +100,12 @@ var options = {
107100
}
108101
```
109102

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
111104

112105
```
113106
var options = {
114107
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']
118109
}
119110
```
120111

0 commit comments

Comments
 (0)