keboola / http-extractor

Extract data from publicly accessible URL
MIT License
2 stars 1 forks source link

Keboola HTTP Extractor

Build Status Maintainability Test Coverage License

Download files from any public URL to /data/out/files.

Configuration options

Sample configurations

Minimal config

{
    "parameters": {
        "baseUrl": "https://www.google.com/",
        "path": "favicon.ico"
    }
}

This will save Google favicon into /data/out/files/favicon.ico.

Development

docker-compose run --rm dev composer install --prefer-dist --no-interaction
curl --request POST --url https://syrup.keboola.com/docker/sandbox --header 'Content-Type: application/json'   --header 'X-StorageApi-Token:YOURTOKEN' --data '{"configData": { "parameters": {"baseUrl": "https://www.google.com/","path": "favicon.ico"}}}'
docker-compose run --rm dev

Tests

Run the complete CI build

docker-compose run --rm dev composer ci

or just the tests

docker-compose run --rm dev composer tests