crawler-main

0.0.1 • Public • Published

wiki-crawler

A search and crawler program for Wikipedia articles. Search the articles in wikipedia, get the results or get the page content if the keyword is page itself.

Installation

npm install wiki-crawler

Usage

This is very simple library. Just initiate it and use crawl function. It returns promise back

var crawler = require('wiki-crawler')
crawler.crawl(string.search).then((data) => {
	// data contains the result
})

Result

data contains following information

  • type: search || page it contains the type of data. If the result is actual search result, it contains search, else if it is a page instead, it contains page
  • title: if the result is page, it contains title
  • description: if the result is page, it contains description
  • results: if the result is search result, it contains all the results(array). Each item does have title and description inturn

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i crawler-main

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

7.69 kB

Total Files

5

Last publish

Collaborators

  • pixelcation