Skip to content

Commit

Permalink
Merge pull request #324 from extractus/7.2.7
Browse files Browse the repository at this point in the history
v7.2.7
  • Loading branch information
ndaidong authored Dec 2, 2022
2 parents f31c80f + e4e3585 commit aabc0e7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ cd article-extractor
npm test
```

![article-extractor unit test](https://i.imgur.com/1ycj7Ks.png)
![article-extractor unit test](https://i.imgur.com/TbRCUSS.png?110222)

If test coverage decreased, please check test scripts and try to improve this number.

Expand Down
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Extract main article, main image and meta data from URL.

[![npm version](https://badge.fury.io/js/@extractus%2Farticle-extractor.svg)](https://badge.fury.io/js/@extractus%2Farticle-extractor)
![CI test](https://github.com/extractus/article-extractor/workflows/ci-test/badge.svg)
[![Coverage Status](https://img.shields.io/coveralls/github/extractus/article-extractor)](https://coveralls.io/github/extractus/article-extractor?branch=main)
![CodeQL](https://github.com/extractus/article-extractor/workflows/CodeQL/badge.svg)
![CI test](https://github.com/extractus/article-extractor/workflows/ci-test/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/extractus/article-extractor/badge.svg?branch=main)](https://coveralls.io/github/extractus/article-extractor?branch=main)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)


Expand All @@ -25,8 +25,8 @@ You can use one or combination of these tools to build news sites, create automa

## Demo

- [Give it a try!](https://demos.pwshub.com/article-parser)
- [Example FaaS](https://extract-article.deta.dev/?url=https://www.freethink.com/technology/virtual-world)
- [Give it a try!](https://extractor-demos.pages.dev/article-extractor)
- [Example FaaS](https://extractus.deno.dev/extract?apikey=rn0wbHos2e73W6ghQf705bdF&type=article&url=https://github.blog/2022-11-17-octoverse-2022-10-years-of-tracking-open-source/)


## Install & Usage
Expand Down Expand Up @@ -138,9 +138,6 @@ The result - `article` - can be `null` or an object with the following structure
}
```

[Click here](https://extract-article.deta.dev/?url=https://www.freethink.com/technology/virtual-world) for seeing an actual result.


##### `parserOptions` *optional*

Object with all or several of the following properties:
Expand Down Expand Up @@ -407,13 +404,24 @@ Read [sanitize-html](https://www.npmjs.com/package/sanitize-html#what-are-the-de

---

## Quick evaluation
## Test

```bash
git clone https://github.com/extractus/article-extractor.git
cd article-extractor
pnpm i
npm i
npm test
```

![article-extractor-test.png](https://i.imgur.com/TbRCUSS.png?110222)


## Quick evaluation

```bash
git clone https://github.com/extractus/article-extractor.git
cd article-extractor
npm i
npm run eval {URL_TO_PARSE_ARTICLE}
```

Expand Down
2 changes: 1 addition & 1 deletion dist/article-extractor.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/article-extractor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@extractus/article-extractor",
"version": "7.2.6",
"version": "7.2.7",
"main": "./article-extractor.js"
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.2.6",
"version": "7.2.7",
"name": "@extractus/article-extractor",
"description": "To extract main article from given URL",
"homepage": "https://github.com/extractus/article-extractor",
Expand Down Expand Up @@ -37,13 +37,13 @@
"@mozilla/readability": "^0.4.2",
"bellajs": "^11.1.1",
"cross-fetch": "^3.1.5",
"linkedom": "^0.14.19",
"linkedom": "^0.14.21",
"sanitize-html": "^2.7.3",
"string-similarity": "^4.0.4"
},
"devDependencies": {
"@types/sanitize-html": "^2.6.2",
"esbuild": "^0.15.13",
"esbuild": "^0.15.16",
"jest": "^29.3.1",
"nock": "^13.2.9",
"standard": "^17.0.0"
Expand Down

0 comments on commit aabc0e7

Please sign in to comment.