pastebot
Project description
# pastebot
[pastebot](http://weibo.com/pastebot) 是一个监控 pastebin 的敏感内容,并发微博的 bot
### 安装
使用 pip 安装:
```
$ pip install -U pastebot
```
或使用 GitHub 安装
```
$ pip install -U git+https://github.com/fate0/pastebot.git
```
或使用源码安装:
```
$ python setup.py install
```
### 使用
基本命令:
```
$ pastebot
Usage: pastebot [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
serve 开始运行 pastebot
weibo 生成 weibo access token
```
生成 weibo access token
```
$ pastebot weibo -h
Usage: pastebot weibo [OPTIONS]
生成 weibo access token
Options:
--key TEXT 微博 App Key [required]
--secret TEXT 微博 App Secret [required]
--domain TEXT 微博安全域名 [required]
-h, --help Show this message and exit.
$ pastebot weibo --key 1234 --secret 123123123123 --domain yourodmain.com
input auth_code: asdfsdfsdf
返回 access_token: you_access_token
过期时间: 37.329166666666666h
用户 uid: 111111
```
使用 `pastebot serve` 运行监控
```
$ pastebot serve -h
Usage: pastebot serve [OPTIONS]
开始运行 pastebot
Options:
--token TEXT 微博 access token [required]
--dsn TEXT sentry dsn
--pool INTEGER 线程池大小
--qps FLOAT qps
--timeout FLOAT 请求 timeout
-h, --help Show this message and exit.
$ pastebot serve --token you_access_token
```
### 参考
* [PasteHunter](https://github.com/kevthehermit/PasteHunter)
* [dumpmon](https://github.com/jordan-wright/dumpmon)
[pastebot](http://weibo.com/pastebot) 是一个监控 pastebin 的敏感内容,并发微博的 bot
### 安装
使用 pip 安装:
```
$ pip install -U pastebot
```
或使用 GitHub 安装
```
$ pip install -U git+https://github.com/fate0/pastebot.git
```
或使用源码安装:
```
$ python setup.py install
```
### 使用
基本命令:
```
$ pastebot
Usage: pastebot [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
serve 开始运行 pastebot
weibo 生成 weibo access token
```
生成 weibo access token
```
$ pastebot weibo -h
Usage: pastebot weibo [OPTIONS]
生成 weibo access token
Options:
--key TEXT 微博 App Key [required]
--secret TEXT 微博 App Secret [required]
--domain TEXT 微博安全域名 [required]
-h, --help Show this message and exit.
$ pastebot weibo --key 1234 --secret 123123123123 --domain yourodmain.com
input auth_code: asdfsdfsdf
返回 access_token: you_access_token
过期时间: 37.329166666666666h
用户 uid: 111111
```
使用 `pastebot serve` 运行监控
```
$ pastebot serve -h
Usage: pastebot serve [OPTIONS]
开始运行 pastebot
Options:
--token TEXT 微博 access token [required]
--dsn TEXT sentry dsn
--pool INTEGER 线程池大小
--qps FLOAT qps
--timeout FLOAT 请求 timeout
-h, --help Show this message and exit.
$ pastebot serve --token you_access_token
```
### 参考
* [PasteHunter](https://github.com/kevthehermit/PasteHunter)
* [dumpmon](https://github.com/jordan-wright/dumpmon)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pastebot-0.1.1.tar.gz
(9.7 kB
view details)
Built Distribution
File details
Details for the file pastebot-0.1.1.tar.gz
.
File metadata
- Download URL: pastebot-0.1.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d85d5377fac308164266f61d43157d7bf5c3872015f9839372fce7b8eb28356 |
|
MD5 | 63c10839ceb8d68f89b7211d7f4d600c |
|
BLAKE2b-256 | 7752c3340570877441fd88cf74b1600f76a040e0ae732da181acf1db25b9a342 |
File details
Details for the file pastebot-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pastebot-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b26c046c79d6f07e94e665f72082834059c08356013862db0cd230e63d4bdef |
|
MD5 | 95056dad492f9327f90b5b976f3b2324 |
|
BLAKE2b-256 | 160a4bb9aec81037851f8f65c79a890f4235d65545de9287cc08c565367841dd |