Skip to content

Commit

Permalink
Merge pull request #24 from fmacpro/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
fmacpro authored Oct 3, 2019
2 parents df5ff76 + 5d3a211 commit c2a6101
Show file tree
Hide file tree
Showing 4 changed files with 2,677 additions and 1,372 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const htmlToText = require('html-to-text')
const nlp = require('compromise')
const absolutify = require('absolutify')
const personalDictionary = require('./personalDictionary.js')
const htmlTags = require('./stripTags.js')
const jsdom = require('jsdom')
const { JSDOM } = jsdom
const helpers = require('./helpers')
Expand Down Expand Up @@ -75,7 +74,7 @@ const articleParser = async function (options, socket) {
article.lighthouse = {}

if (typeof options.striptags === 'undefined') {
options.striptags = htmlTags
options.striptags = []
}

socket.emit('parse:status', 'Starting Horseman')
Expand Down Expand Up @@ -116,8 +115,9 @@ const articleParser = async function (options, socket) {
socket.emit('parse:status', 'Status ' + article.status)

if (article.status === 403 || article.status === 404) {
socket.emit('parse:status', 'Failed to fetch URL')
await browser.close()
return article.status + ' Failed to fetch URL'
process.exit(1)
}

// Evaluate URL
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "horseman-article-parser",
"version": "0.7.1",
"version": "0.7.2",
"description": "Web Page Inspection Tool. Sentiment Analysis, Keyword Extraction, Named Entity Recognition & Spell Check",
"main": "index.js",
"scripts": {
Expand Down
21 changes: 0 additions & 21 deletions stripTags.js

This file was deleted.

4,020 changes: 2,673 additions & 1,347 deletions testresults.json

Large diffs are not rendered by default.

0 comments on commit c2a6101

Please sign in to comment.