Socket
Socket
Sign inDemoInstall

blogger-posts-crawler

Package Overview
Dependencies
78
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    blogger-posts-crawler

## Preview


Version published
Maintainers
1
Install size
6.03 MB
Created

Readme

Source

Blogspot crawler

Preview

Usage

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
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

npm test

FAQs

Last updated on 18 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc