54. CLI with Options
Add a CLI to configure scraper behavior.
Example
import argparse
parser = argparse.ArgumentParser(description="Web Scraper")
parser.add_argument("url", help="Target URL")
parser.add_argument("--out", default="output.json", help="Output file")
args = parser.parse_args()
Wrap-Up
A CLI makes your scraper flexible and user-friendly.