- with requests_cache.CachedSession(args.cache_path, cache_control=True) as session:
- process(args.url, session, args.timeout)
+ texifier = PandocTexifier(args.pandoc or 'pandoc')
+ with CachingFetcher(args.cache_path, args.timeout) as fetcher:
+ with open(args.out + '.tex', 'wb') as texout:
+ process(args.url, fetcher, texifier, texout)