Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agument parsing #2

Open
MartinThoma opened this issue Feb 19, 2016 · 2 comments
Open

agument parsing #2

MartinThoma opened this issue Feb 19, 2016 · 2 comments

Comments

@MartinThoma
Copy link

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
Copy link
Author

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
Copy link
Member

torfsen commented Feb 25, 2016

Good idea, feel free to submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants