CodeforKarlsruhe/trinkwasser-scraper

agument parsing

Opened this issue · 2 comments

I recommend using argparse for argument parsing. See https://martin-thoma.com/how-to-parse-command-line-arguments-in-python/#tocAnchor-1-1-5 for an example.

One reason to use argparse is that it makes the source code easier to read. Another reason for using argparse is that it automatically adds --help and thus gives a clue how to use your scraper without having to read / understand the code.

Good idea, feel free to submit a PR.