GithubHelp home page GithubHelp logo

mindd_get's Introduction

Mindd get

A simple python script to interact with the moetiknaardedokter.nl API, and save the result in json or csv format.

Usage

users need to provide their own auth key, and give it to the script with the --api-key flag. By default the script will pull all the available data to a json file. But this can be altered to csv with the --convert_to_csv flag. The start and end date are also setable and use a DD/MM/YYYY layout.

Output of the --help flag:

$python3 mindd_get.py --help

usage: mindd_get.py [-h] --api_key API_KEY [--start_date START_DATE]
                    [--end_date END_DATE] [--output_file OUTPUT_FILE]
                    [--convert_to_csv CONVERT_TO_CSV]

Fetch data from an API endpoint and save it to a JSON file.

options:
  -h, --help            show this help message and exit
  --api_key API_KEY     The API key to use for authentication.
  --start_date START_DATE
                        The start date for the API query in DD/MM/YYYY format
                        (Optional).
  --end_date END_DATE   The end date for the API query in DD/MM/YYYY format
                        (Optional).
  --output_file OUTPUT_FILE
                        The name of the output file. Defaults to "data.json".
  --convert_to_csv CONVERT_TO_CSV
                        save the output as a csv iso a json file

mindd_get's People

Contributors

da-i 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.