agument parsing
Opened this issue · 2 comments
MartinThoma commented
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.
MartinThoma commented
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.
torfsen commented
Good idea, feel free to submit a PR.