Skip to content

Commit

Permalink
WIP - README
Browse files Browse the repository at this point in the history
  • Loading branch information
SupianIDz committed Jan 30, 2023
1 parent ae06ce4 commit aa7d657
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
# Hentai Cosplay
# Hentai Downloader

## Requirements

- SQLite3
- PHP 8.1 with curl, sqlite3, and mbstring extensions

## Installation

Download the latest release from the [releases page](https://github.com/SupianIDz/HentaiCosplay/releases).

## Usage

```bash
php hentai
```

<img src="examples/1.png" alt="">

### Crawl URLs

First, you need to crawl the URLs from the website. You can crawl a single URL using the following command.

```bash
php hentai img:crawl https://hentai-cosplays.com/image/coserpingping-misa-amane/
```

<img src="examples/2.png" alt="">

or you can crawl multiple URLs at once using a text file containing the URLs line by line.

```bash
php hentai img:crawl source.txt
```

<img src="examples/3.png" alt="">

### Getting Images

After crawling the URLs, you can download the images using the following command.

By default, the images will be downloaded to the `~/.hentai/images` directory.

```bash
php hentai img:fetch
```

or you can set the download directory by adding output directory as the second argument.

```bash
php hentai img:fetch ~/output/
```
Binary file added examples/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aa7d657

Please sign in to comment.