New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@saber2pr/baidu-chart-api

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saber2pr/baidu-chart-api

> 百度指数数据解析

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

@saber2pr/baidu-chart-api

百度指数数据解析

送给 b 站的小伙伴 qwq

使用方法

  1. 确保电脑安装 node.js

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

npm install @saber2pr/baidu-chart-api -g
  1. 命令行执行
baiduChart

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

API

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

new BaiduChart(cookie).search('关键字')
  • cookie 需要抓包获得。(BAIDUID开头的值就可以了, 示例>>)

document.cookie 拿到的值不行!虽然大部分 cookie 都是 httponly=false 的,但是也有个别有安全策略。所以不如直接抓包来的快。

其实 cookie 是可以服务端模拟登录拿到的,但是由于百度的身份认证加密过于复杂,up 我只能手动复制 cookie 了 T_T


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!

Keywords

FAQs

Package last updated on 22 Jun 2019

Did you know?

Socket

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc