Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yakubique/grab-limited

Grab URLs with timelimit
https://github.com/yakubique/grab-limited

actions fetch github http limit

Last synced: about 2 months ago
JSON representation

Grab URLs with timelimit

Awesome Lists containing this project

README

        

# Grab with limits

Grab URLs with timelimit

[![Test `grab-limited` action](https://github.com/yakubique/grab-limited/actions/workflows/test-myself.yaml/badge.svg)](https://github.com/yakubique/grab-limited/actions/workflows/test-myself.yaml)

[Usage workflow](https://github.com/yakubique/grab-limited/actions/workflows/test-myself.yaml)

## Usage
```yaml
- name: Grab with limits
id: list
uses: yakubique/grab-limited@v1
with:
endpoints: '["https://hacker-news.firebaseio.com/v0/topstories.json", "https://hacker-news.firebaseio.com/v0/topstories.json"]'
interval: 300
concurrency: 2
```

## Inputs

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|-------------|--------|----------|-----------|-----------------------------------------|
| concurrency | string | false | `"1"` | Amount of requests at time |
| endpoints | string | true | | Endpoints to call (JSON array or file) |
| from_file | string | false | `"false"` | Load endpoints from JSON file |
| headers | string | false | `"{}"` | JSON string with headers to include |
| interval | string | true | | Interval between queries (ms) |
| method | string | false | `"GET"` | HTTP call method |
| retry | string | false | `"1"` | Amount of retries |
| retry_pause | string | false | `"300"` | Pause between retries (ms) |
| to_file | string | false | `"false"` | Save result to JSON file |

## Outputs

| OUTPUT | TYPE | DESCRIPTION |
|--------|--------|-------------------------------------------------|
| result | string | Result list in JSON format OR
path to file |

----

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S1UZ9P7)