Argparse lets you pass in user defined arguments to you code before it runs, this is a great way to change specific parts without editing your code or taking in user input. This video covers the very basics, and is aimed at someone who has never used argparse before - there’s a lot more to it than just this but I hope that this will give you a good idea of what you can achieve with it and maybe make your life a little easier when running your repeatable web scrapers.
Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases
Digital Ocean (Cloud Servers, Affiliate Link) - https://m.do.co/c/c7c90f161ff6
#python