Coder Social home page Coder Social logo

baidu-chart-api's Introduction

@saber2pr/baidu-chart-api

npm

百度指数数据解析

送给 b 站的小伙伴 qwq

使用方法

  1. 确保电脑安装 node.js

  2. 打开 cmd(或终端),执行以下命令安装 app

windows 下执行

npm install @saber2pr/baidu-chart-api -g

mac 或 linux 下执行(加 sudo)

sudo npm install @saber2pr/baidu-chart-api -g

命令安装好 app 后

命令行执行

baiduChart

命令行输入 baiduChart 回车,然后根据提示就可以了

API

npm i @saber2pr/baidu-chart-api
import { BaiduChart } from '@saber2pr/baidu-chart-api'

const cookie = '你的百度帐号cookie'

new BaiduChart(cookie).search('关键字')

Bug

0.0.3 及以下版本在 windows 下会报错,最新版已解决。

免责声明

本项目只为学习所用,请勿用于商业用途。

使用本软件前,请先阅读

使用百度指数前必读 | 百度指数版权声明

如未遵守以上条款造成法律责任,本人概不负责!>_<


start

npm install
npm start

npm test

Author: saber2pr


develope and test

you should write ts in /src

you should make test in /src/test

export your core in /src/index.ts!

baidu-chart-api's People

Contributors

saber2pr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

godxkey

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.