Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yakubique/grab-limited
- Owner: yakubique
- License: mit
- Created: 2024-03-17T02:12:19.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-17T02:19:04.000Z (10 months ago)
- Last Synced: 2024-03-17T06:28:37.463Z (10 months ago)
- Topics: actions, fetch, github, http, limit
- Language: JavaScript
- Homepage:
- Size: 179 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)