Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aquilax/opendirindexer

Open directory indexer
https://github.com/aquilax/opendirindexer

crawler go indexing

Last synced: about 1 month ago
JSON representation

Open directory indexer

Awesome Lists containing this project

README

        

# opendirindexer

[![Go Report Card](https://goreportcard.com/badge/github.com/aquilax/opendirindexer)](https://goreportcard.com/report/github.com/aquilax/opendirindexer)

Open directory indexer command line tool

## Installation

```shell
go install github.com/aquilax/opendirindexer@latest
```

## Usage

```
Usage of opendirindexer:
opendirindexer [OPTIONS] URL
-debug
Enable debugging
-ignoreRobots
Ignores robots.txt restrictions
-insecure
Allow insecure tls connections
-userAgent string
set user agent (default "opendirindexer/1.0")
```

Example:

Given the following structure:

```shell
$ tree
.
├── 4.txt
├── test1
│   ├── 1.txt
│   └── test1.1
│   └── 1.txt
└── test2
└── 3.txt

3 directories, 4 files
```

The output will be:

```shell
$ opendirindexer http://localhost:8000
http://localhost:8000/4.txt
http://localhost:8000/test1/1.txt
http://localhost:8000/test2/3.txt
http://localhost:8000/test1/test1.1/1.txt
```

And the server log looks like:

```shell
$ python -m http.server 8000
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
127.0.0.1 - - [14/Apr/2019 08:43:25] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [14/Apr/2019 08:43:25] "GET /test1/ HTTP/1.1" 200 -
127.0.0.1 - - [14/Apr/2019 08:43:25] "GET /test2/ HTTP/1.1" 200 -
127.0.0.1 - - [14/Apr/2019 08:43:25] "GET /test1/test1.1/ HTTP/1.1" 200 -
```