Install Tor through brew
brew install tor
Hash a password for Tor (optional)
tor --hash-password YourPassword
Setup tor config file (optional)
cp /usr/local/etc/tor/torrc.sample /usr/local/etc/tor/torrc
vi /usr/local/etc/tor/torrc (edit config file)
Install Python Libraries
pip install -r requirements.txt
Download GeoIP Database on MaxMind
Launch Tor
tor
Call webpage with cUrl through tor
curl --socks4a localhost:9050 <url>
Call the Tor script
python -m tor