npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

yahoo-jp

v0.0.0

Published

Scrape the search.yahoo.co.jp

Downloads

5

Readme

node-yahoo-jp NPM version Build Status Coverage Status

Scrape the http://search.yahoo.co.jp/search

Installation

$ npm install yahoo-jp --save

API

yahooJp.fetchAll(queries,options) -> Promise(items)

http://search.yahoo.co.jp/searchqueriesを送信し、返された html にある検索結果中のURL,題名、本文を取得し、配列で返します。

var yahooJp= require('yahoo-jp');

var queries= {
  p: 'UE4.8.3',
};
var options= {};

yahooJp.fetchAll(queries,options)
.then(function(items){
  console.log(items);
});
// [
//   {
//     "url": "https://answers.unrealengine.com/questions/218432/476-test-project-stuck-on-splash-screen-on-ios-83.html",
//     "title": "4.7.6 - test project stuck on splash screen on iOS 8.3 - UE4 ...",
//     "body": "2015年4月27日 ... Hello - while using 4.7.6, when I build a test project (or the Blackjack or Tappy \nChicken sample projects) for iOS and deploy the IPA to my iPhone 6 (running iOS \n8.3) the app hangs on the splash screen. When using 4.5.1, ..."
//   },
//   {... more 9 items}
// ]

queriesはそのまま検索のGETパラメータとして使用するので、検索ツールの引数を使用することで、時間で絞込を行うことも可能です。

var yahooJp= require('yahoo-jp');

var queries= {
  p: 'UE4.8.3',
  vd: 'd',// 24時間以内
};
var options= {};

yahooJp.fetchAll(queries,options)
.then(function(items){
  console.log(items);
});
// [
//   {
//     "url": "https://ja.wikipedia.org/wiki/3DCG%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2",
//     "title": "3DCGソフトウェア - Wikipedia",
//     "body": "8.2 乗り物アニメーション; 8.3 群集シミュレーション・人工知能(AI)シミュレーション; 8.4 \nクロスシミュレーション; 8.5 破壊シミュレーション; 8.6 シミュレーション及びエフェクト. 8.6\n.1 ボリュームエフェクト; 8.6.2 メッシュ化; 8.6.3 海洋シミュレーション; 8.6.4 その他 ..."
//   },
//   {... more 9 items}
// ]

options

  • limit 取得するページ数…デフォルト 1

    limitに応じてページリクエストのpstartbは自動で生成します。

  • concurrency 同時リクエスト数…デフォルト 1

    並列でページ取得を試みます。

License

MIT