# blogger-posts-crawler

> ## Preview

Latest version **0.2.0** (published 2015-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install blogger-posts-crawler
pnpm add blogger-posts-crawler
yarn add blogger-posts-crawler
bun add blogger-posts-crawler
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2015-09-18 |
| First published | 2015-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Pleasurazy |
| Maintainers | pleasurazy |

## Links

- npm: https://www.npmjs.com/package/blogger-posts-crawler
- Repository: https://github.com/Pleasurazy/blogger-posts-crawler
- Homepage: https://github.com/Pleasurazy/blogger-posts-crawler#readme
- Issues: https://github.com/Pleasurazy/blogger-posts-crawler/issues
- npm.io page: https://npm.io/package/blogger-posts-crawler

## Dependencies (6)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [is-url](https://npm.io/package/is-url.md) ^1.2.1
- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [html-img-digger](https://npm.io/package/html-img-digger.md) ^0.1.0
- [request-promise](https://npm.io/package/request-promise.md) ^0.4.3
- [html-taiwan-address-digger](https://npm.io/package/html-taiwan-address-digger.md) ^0.1.2

## Recent versions

- 0.2.0 (latest) — 2015-09-18
- 0.1.0 — 2015-08-25

## README

# Blogspot crawler

## Preview

![](http://i.imgur.com/9zvm3KE.png)

## Usage

```sh
npm install blogger-posts-crawler --save
```

## API

#### .findAll()

```
@name findAll
@param {object} options
@param {boolean} [options.fetchAll=false] - If you want to retrieve all the articles form google.
@param {string} options.url - Url of Blogspot.
@param {string} options.key - Server-side API access token from Google Blogger API.
@returns {Article[]}
```

###### Example

```js
import crawler from 'blogger-posts-crawler'

let articles = await crawler.findAll({
  url: 'http://happycloud2013.blogspot.tw/',
  fetchAll: false,
  key: YOUR_API_KEY,
})

console.log(articles) // {Article[]}
```

## Interfaces

#### Article

```
@name Article
@interface
@prop {string[]} address
@prop {string} body - Content of article
@prop {string} cover - Generally first element of Article.images
@prop {string[]} images - Contain URL format in the array.
@prop {string} published - ISO8601 format
@prop {string} title
@prop {string} url
```

## Development Flow

```
vi src/index.js
:wq
npm test
git commit -m 'minor changes'
```

## test

```sh
npm test
```

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