Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/aquilax/opendirindexer
- Owner: aquilax
- License: mit
- Created: 2019-04-14T06:03:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T08:34:55.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T12:42:57.209Z (6 months ago)
- Topics: crawler, go, indexing
- Language: Go
- Size: 12.7 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.txt3 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 -
```