Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bing-me-links

odynvolk30MIT1.0.0

Scrapes Baidu, Bing, StartPage, Yahoo, Webcrawler, Qwant and retrieves links in serps

readme

bing-me-links

A simple node module for scraping links from the Baidu, Bing, StartPage, Webcrawler, Yahoo, and Qwant search engines.

Install

Install with npm

$ npm install bing-me-links --save

Usage

BingMeLinks uses the exp-config module for handling its' configuration in JSON files.


const bingMeLinks = require("bing-me-links");
const vo = require("vo");

const query = "javascript";  
const baidu = vo(bingMeLinks.searchBaidu(query));
vo(baidu)
  .then((links) => {
    //=> ["http://whatever1", "http://whatever2"]
  });

const bing = vo(bingMeLinks.searchBing(query));
vo(bing)
  .then((links) => {
    //=> ["http://whatever1", "http://whatever2"]
  });

const startPage = vo(bingMeLinks.searchStartPage(query));
vo(startPage)
  .then((links) => {
    //=> ["http://whatever1", "http://whatever2"]
  });

const webcrawler = vo(bingMeLinks.searchWebcrawler(query));
vo(webcrawler)
  .then((links) => {
    //=> ["http://whatever1", "http://whatever2"]
  });

const yahoo = vo(bingMeLinks.searchYahoo(query));
vo(yahoo)
  .then((links) => {
    //=> ["http://whatever1", "http://whatever2"]
  });

const qwant = vo(bingMeLinks.searchQwant(query));
vo(qwant)
  .then((links) => {
    //=> ["http://whatever1", "http://whatever2"]
  });  
`

Running tests

Install dev dependencies:

$ npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

License

Released under the MIT license.

changelog

1.0.0 / 2017-03-30

  • Added Webcrawler search engine.

0.7.0 / 2017-03-04

  • Added Baidu search engine.

0.6.0 / 2016-12-10

  • Added StartPage search engine.

0.5.1 / 2016-11-28

  • Url encoding queries.

0.5.0 / 2016-11-06

  • Added Qwant search engine.

0.4.0 / 2016-11-05

  • Made logging more configurable