if __name__ == '__main__'is just convention to create amain()entry point for the code- Command line arguments can easily be added importing
sysand using thesys.argvlist - Argparse can also be used to create more rich argument like this
- This basic version uses wget to download the file it found. You can add more arguments to wget using the existing
subprocess.run()function - wget has some helpful options that may be considered depending on preference:
--no-clobberor-ncwon't download a file that has the same name-Nwill overwrite a file that has the same name-Ocan be used to specify a file output name. This can be useful if a standardized file name is required (such as using the current date)
- curl can be used instead of the requests library [like this](https://github.com/Davey-Hughes/hltv_stats/blob/master/src/