<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Iscle Beltran</title>
    <description>The latest articles on DEV Community by Iscle Beltran (@iscle_data).</description>
    <link>https://dev.to/iscle_data</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260075%2Fbbfef091-56e2-4955-b0b1-2e62bb4ef1eb.png</url>
      <title>DEV Community: Iscle Beltran</title>
      <link>https://dev.to/iscle_data</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iscle_data"/>
    <language>en</language>
    <item>
      <title>How to build a B2B lead list from Google Maps with emails (Python, no browser)</title>
      <dc:creator>Iscle Beltran</dc:creator>
      <pubDate>Tue, 24 Nov 2026 06:49:42 +0000</pubDate>
      <link>https://dev.to/iscle_data/how-to-build-a-b2b-lead-list-from-google-maps-with-emails-python-no-browser-40e5</link>
      <guid>https://dev.to/iscle_data/how-to-build-a-b2b-lead-list-from-google-maps-with-emails-python-no-browser-40e5</guid>
      <description>&lt;p&gt;Google Maps is the biggest free directory of local businesses. The problem: it shows phones and websites, but not emails. Here's how I get a lead list with emails for any business type and city in a few lines of Python.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Search Google Maps for a business type in a location ("dentist" in "Madrid, Spain").&lt;/li&gt;
&lt;li&gt;For each place with a website, visit the site and extract emails and social profiles.&lt;/li&gt;
&lt;li&gt;Keep only clean, contactable data: E.164 phones, emails with valid MX records, no tracking parameters.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I packaged this as an Apify Actor, &lt;a href="https://apify.com/iscle/google-maps-leads-emails" rel="noopener noreferrer"&gt;Google Maps Email Extractor&lt;/a&gt;, so it runs in the cloud and exports to JSON, CSV or Excel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it from Python
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install apify-client
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;apify_client&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;ApifyClient&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;ApifyClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"YOUR_APIFY_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;actor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"iscle/google-maps-leads-emails"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run_input&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"searchQueries"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"dentist"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"orthodontist"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"location"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Madrid, Spain"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"maxPlacesPerQuery"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"scrapeContacts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"onlyWithEmail"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;lead&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"defaultDatasetId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;iterate_items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lead&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lead&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lead&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"phone"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lead&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What came out in my tests (18 Nov 2026)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Searches&lt;/th&gt;
&lt;th&gt;Places&lt;/th&gt;
&lt;th&gt;With website&lt;/th&gt;
&lt;th&gt;With email&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;dentist + plumber, Madrid&lt;/td&gt;
&lt;td&gt;260&lt;/td&gt;
&lt;td&gt;236&lt;/td&gt;
&lt;td&gt;165 (63 %)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;plumber Austin TX, Italian restaurant Berlin, coworking Lisbon&lt;/td&gt;
&lt;td&gt;167&lt;/td&gt;
&lt;td&gt;165&lt;/td&gt;
&lt;td&gt;119 (71 %)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;260 places with website enrichment took about 2 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tips
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Google Maps returns roughly 120–140 places per search. For more, split by neighbourhood ("dentist Chamberí Madrid").&lt;/li&gt;
&lt;li&gt;Emails are tagged &lt;code&gt;generic&lt;/code&gt;, &lt;code&gt;personal&lt;/code&gt; or &lt;code&gt;legal&lt;/code&gt;; use &lt;code&gt;generic&lt;/code&gt; (info@, hello@) for first contact.&lt;/li&gt;
&lt;li&gt;Respect local rules on B2B outreach (GDPR in the EU, CAN-SPAM in the US).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Pricing
&lt;/h2&gt;

&lt;p&gt;Pay per event: a small fee per place, and the email fee only when an email is actually found. If you already have a list of websites, the companion &lt;a href="https://apify.com/iscle/website-contact-extractor" rel="noopener noreferrer"&gt;Website Email Extractor&lt;/a&gt; does just the enrichment step.&lt;/p&gt;

&lt;p&gt;Questions or ideas? Leave a comment.&lt;/p&gt;

</description>
      <category>python</category>
      <category>webscraping</category>
      <category>leadgeneration</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
