Give Claude Code one prompt at midnight and wake up to a verified lead list your competitors would pay a vendor thousands for. Setup time: about 20 minutes. Then you go to bed.
By the end of this playbook you'll have Claude Code running as an autonomous overnight scraper. It works city by city through Google Maps, pulls every business in your niche, visits their websites, grabs owner names and emails, runs a first-pass verification, and saves everything to a clean CSV. It plans its own searches, retries when a site blocks it, and keeps grinding until the list is done.
This is the exact setup from the video. My run cost about forty bucks in API credits. The last list I bought from a vendor cost four grand and half the contacts were stale. Your cost will depend on how big a list you ask for, but the math is not close.
Claude Code is Anthropic's terminal agent. It lives in your command line and can run commands, write files, and fix its own errors. Open Terminal (Mac) or PowerShell (Windows) and run:
Then start it once to sign in:
It will walk you through logging in with your Claude account or an Anthropic Console API key. Sign in, then type /exit. You're installed.
Never run an unattended agent loose in your home folder. Give it a dedicated sandbox so everything it touches lives in one place:
Now drop in a rules file. Claude Code automatically reads a file called CLAUDE.md in the working folder and treats it as standing orders. This is what keeps a 6-hour run from going sideways:
That last column matters. You're not just collecting emails, you're making the agent rank who actually needs you. That's what turns a scrape into a sales list.
Start Claude Code from inside the night-shift folder, then paste this. It's the prompt from the video with one blank for you to fill:
Swap in your niche: roofing, freight shippers, med spas, HVAC, whatever you sell to. Swap in your offer so the scoring column means something. In the video it was shippers who need a freight broker. Same prompt, different blank.
Claude will plan the searches itself, pick or install a scraper, and start working. Watch the first city complete before you walk away. If the CSV looks right after city one, it'll look right after city fifty.
By default Claude Code asks permission before running commands, which kills an overnight run because it'll sit there waiting for you to hit yes. Two fixes. The quick one: press Shift+Tab inside the session to cycle into auto-accept mode. The full one: start the session with permissions off entirely:
Last thing before lights out: stop your computer from sleeping. On Mac, open a second terminal and run caffeinate -dis and leave it running. On Windows, set Power & Sleep to Never for the night. Laptop plugged in, lid open. Now actually go to bed. Checking on it defeats the entire point.
You'll wake up to a fat CSV. Do not import it into anything yet. Open the same Claude Code session (or a fresh one in the folder) and run the cleanup:
Then spot-check 20 random rows by hand. Click the websites, sanity-check the names. The overnight verification only confirms the domain accepts mail, which catches dead domains but not dead inboxes. Before you send a single cold email, run the clean list through a dedicated verifier like NeverBounce, ZeroBounce, or MillionVerifier. It's cheap, and a high bounce rate will burn your sending domain faster than anything else you can do wrong.
Everybody's using AI to write the emails. The real money's in who finds the list, and now that's you. So don't blow it in one day:
The Night Shift Lead Machine is part of the free AI Automation Starter Stack. Grab the other 50+ playbooks and build the whole system.
Get all 50+ free playbooks