GithubHelp home page GithubHelp logo

gp-getter's Introduction

General Purpose GET Fetcher

Initially made to get ArcGIS resources concurrently, albeit not that great in performance...

Environment

Developed in deno environment. Standard library version 0.105.0.

Compiling

Compile run.ts with:

deno compile --output ./dist/run ./run.ts

or just use the compiled binary for windows ./dist/run.exe.

Usage

run.exe [input-file] [url] [args]

where:

  • input-file: path to file containing list of resources to get, separated by newline
  • url: url containing literal [INJECT] where it will be replaced with each line from input-file
  • args:
    • -O or --output: path to store the output, should be a directory, defaults to result/
    • -F or --failed-location: path to file to log resources that are failed to get, defaults to ./failed.txt
    • -C or --concurrency-limit: how many concurrent process/promises spawned at a time, defaults to 10 (doesn't always equal to how much HTTP client & transport spawned)

For example, running ./dist/run.cmd:

./run.exe input.txt "http://gis-portal.kemendesa.go.id/server/rest/services/Pusdatin/IDM_2018/MapServer/3/query?where=KODEDESA_K='[INJECT]'&f=geojson"

Will fetch http://gis-portal.kemendesa.go.id/server/rest/services/Pusdatin/IDM_2018/MapServer/3/query?where=KODEDESA_K='[INJECT]'&f=geojson using input.txt as resources list, outputting resources to default output directory (result/)

gp-getter's People

Contributors

inf-initely avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.