# aljazeera-reader

> Reads a Al Jazeera article from aljazeera.com

Latest version **1.0.5** (published 2015-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install aljazeera-reader
pnpm add aljazeera-reader
yarn add aljazeera-reader
bun add aljazeera-reader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2015-11-06 |
| First published | 2015-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+25 in 3 direct dependencies) |
| Install scripts | no |
| Author | Micah Williamson |
| Maintainers | iamchairs |

## Links

- npm: https://www.npmjs.com/package/aljazeera-reader
- Repository: https://github.com/iamchairs/aljazeera-reader
- Homepage: https://github.com/iamchairs/aljazeera-reader#readme
- Issues: https://github.com/iamchairs/aljazeera-reader/issues
- npm.io page: https://npm.io/package/aljazeera-reader

## Dependencies (4)

- [q](https://npm.io/package/q.md) ^1.4.1
- [xmldom](https://npm.io/package/xmldom.md) ^0.1.19
- [request](https://npm.io/package/request.md) ^2.65.0
- [sanitize-html](https://npm.io/package/sanitize-html.md) ^1.11.1

## Recent versions

- 1.0.5 (latest) — 2015-11-06
- 1.0.4 — 2015-11-06
- 1.0.3 — 2015-11-05
- 1.0.1 — 2015-11-04
- 1.0.0 — 2015-11-04

## README

bbc-reader
----------

Scrape a AlJazeera article from aljazeera.com


## Install

```
npm install bbc-reader --save
```

## Use

```
   var AlJazeeraReader = require('aljazeerareader-reader');
   var aljazeerareader = new AlJazeeraReader();

   // Promise
   aljazeerareader.read('http://www.aljazeera.com/news/2015/11/russia-planes-safety-test-syria-151104051352338.html').then(function(article) {
      // Do Something with Article
   });

   // Callback
   aljazeerareader.read('http://www.aljazeera.com/news/2015/11/russia-planes-safety-test-syria-151104051352338.html', function(article) {
      // Do Something with Article
   });
```

## Article

```
var Article = {
   title: '',
   datetime: '',
   body: {
      clean: '',
      markdown: ''
   },
   images: [
      {
         full: ''
      }
   ],
   source: ''
};
```

**title**
The title of the Article. What appears in the h1 on the page.

**datetime**
The datetime with timezone of the last update of the article. Format: `YY-mm-dd H:i:s GMT`. The datetime will always be `GMT+0000`.

**body**
The body of the article. Comes in two formats. *clean* and *minimal*. The clean format removes all html elements and separates paragraphs by two newlines. Markdown attempts to provide a markdown version of the article.

**images**
An array of image urls found in the body. Comes in sizes `full` for each image.

**source**
The url of the aljazeera article.

---
_Source: https://npm.io/package/aljazeera-reader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
