onionscan Cannot connect to Tor proxy, is the –torProxyAddress setting correct?

Trying to run onionscan, but encountering the error
Cannot connect to Tor proxy, is the --torProxyAddress setting correct?

Simply get the latest tor browser running on your machine and add the following proxy:

–torProxyAddress 127.0.0.1:9150

The latest tor runs on your local machine at port 9150. This flag instructs onionscan to use that as the proxy.

Example command:

onionscan –torProxyAddress 127.0.0.1:9150 –verbose targetsite.onion