Skip to main content

backup h.nimingban and kukuku.cc

Project description

Island Backup
=============
![author](https://img.shields.io/badge/Author-littlezz-blue.svg)
![py version](https://img.shields.io/pypi/pyversions/island-backup.svg)
![pypi status](https://img.shields.io/pypi/v/island-backup.svg)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)]()

以 `aiohttp` `asyncio` 为主编写的备份程序

备份匿名版上的串, 图片到本地, 以html形式查看


特性
---
- 支持A岛 (https://h.nimingban.com/)
- 支持kukuku (http://kukuku.cc/)
- 支持备胎岛 (http://h.adnmb.com/Forum)
- 自动备份图片
- 并发下载
- 使用aiohttp而非多线程

安装
---
###windows用户
可以下载编译好的二进制包

https://github.com/littlezz/island-backup/releases



###clone

需要python >= 3.5
依赖库请查看requirements.txt

下载程序
`git clone https://github.com/littlezz/island-backup`

安装依赖
`pip(3) install -r requirements.txt`


###pip

使用`pip` 安装

pip(3) install island-backup

之后可以使用 `island_backup` 指令


使用方法
------

###windows
windows 用户运行island_backup.exe 文件.
输入 url ,

```shell
Please Input Url: http://h.nimingban.com/t/6048436?r=6048436
```

内容在backup文件夹里面.

###Mac && Linux
推荐使用 pip 安装, 之后可以使用`island_backup`, 会在当前目录下生成backup文件夹.

`island_backup http://h.nimingban.com/t/6048436?r=6048436`

使用`island_backup --help` 查看所有支持的指令


```shell

⇒ island_backup --help (env: island_backup)
Usage: island_backup [OPTIONS] [URL]

Options:
-url TEXT
--debug enable debug mode
--force-update force update image
--conn-count INTEGER RANGE max conn number connector use. from 1 to 20.
Default is no limit
-p, --proxy TEXT socks proxy address, ex, 127.0.0.1:1080
--version Show the version and exit.
--help Show this message and exit.

```

###配置文件

另外支持使用名字为"island_backup.json"的文件保存配置, 程序在启动时默认搜索当前目录,和`~/.island_backup`。

比如一个配置文件

```json
{
"conn-count": "10",
"debug": true,
"proxy": "127.0.0.1:1080"
}
```



![](/screenshot/shell.png)



Screenshot
----------
![](/screenshot/html-preview.png)


Changelog
---------
- v1.5 分离了备份文件中的css和js;现在可以使用配置文件了。
- v1.4 修复nimingban, kukuku, 增加单元测试, 分离了类结构。
- v1.3 支持备胎岛 2016-09-02

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

island_backup-1.5.0.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

island_backup-1.5.0-py35-none-any.whl (17.1 kB view hashes)

Uploaded Python 3.5

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page