Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aqzhyi/blogger-posts-crawler
a crawler with google blogspot API for mypoint.tw
https://github.com/aqzhyi/blogger-posts-crawler
Last synced: 13 days ago
JSON representation
a crawler with google blogspot API for mypoint.tw
- Host: GitHub
- URL: https://github.com/aqzhyi/blogger-posts-crawler
- Owner: aqzhyi
- Created: 2015-08-25T09:53:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-18T07:25:14.000Z (over 9 years ago)
- Last Synced: 2024-12-02T11:58:13.523Z (21 days ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
```