from argparse import ArgumentParser
import requests
+import requests_cache
def command_line_parser() -> ArgumentParser:
def main() -> None:
args = command_line_parser().parse_args()
- with requests.session() as session:
+ with requests_cache.CachedSession() as session:
fetch(args.url, session, args.timeout)