# mweibo-api

> m.weibo.cn apis

Latest version **0.0.10** (published 2018-09-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install mweibo-api
pnpm add mweibo-api
yarn add mweibo-api
bun add mweibo-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2018-09-01 |
| First published | 2018-05-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 18.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | storm.hao |
| Maintainers | storm.hao |
| Keywords | m.weibo.cn |

## Links

- npm: https://www.npmjs.com/package/mweibo-api
- npm.io page: https://npm.io/package/mweibo-api

## Dependencies (7)

- [images](https://npm.io/package/images.md) ^3.0.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [get-pixels](https://npm.io/package/get-pixels.md) ^3.3.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.1.2
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^2.2.1
- [selenium-webdriver](https://npm.io/package/selenium-webdriver.md) ^4.0.0-alpha.1

## Recent versions

- 0.0.10 (latest) — 2018-09-01
- 0.0.9 — 2018-08-30
- 0.0.8 — 2018-08-02
- 0.0.7 — 2018-08-02
- 0.0.6 — 2018-07-23
- 0.0.5 — 2018-05-20
- 0.0.4 — 2018-05-19
- 0.0.3 — 2018-05-19
- 0.0.1 — 2018-05-19

## README

## 微博移动端接口

### 登录
登录接口需要先下载 [chromedriver](http://chromedriver.storage.googleapis.com/index.html) 并设置环境变量
```
import mweiboApi from 'mweibo-api';
const cookies = await mweiboApi.login('username', 'password');
```

### 点赞
```
import mweiboApi from 'mweibo-api';
const cookies = await mweiboApi.like('weiboId', 'cookie');
```
注意此处 cooike 为字符串

### 评论
```
import mweiboApi from 'mweibo-api';
const cookies = await mweiboApi.comment('weiboId', 'cookie', 'comment');
```
注意此处 cooike 为字符串

---
_Source: https://npm.io/package/mweibo-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
