<?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: Brand Captain</title>
    <description>The latest articles on DEV Community by Brand Captain (@brandcaptain).</description>
    <link>https://dev.to/brandcaptain</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%2F4263477%2Fcd6cfea5-37cd-4b29-b3a6-2269bff68f2b.png</url>
      <title>DEV Community: Brand Captain</title>
      <link>https://dev.to/brandcaptain</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/brandcaptain"/>
    <language>en</language>
    <item>
      <title>How we built an open dataset of 309 Utah marketing agencies</title>
      <dc:creator>Brand Captain</dc:creator>
      <pubDate>Tue, 24 Nov 2026 21:51:51 +0000</pubDate>
      <link>https://dev.to/brandcaptain/how-we-built-an-open-dataset-of-309-utah-marketing-agencies-4pee</link>
      <guid>https://dev.to/brandcaptain/how-we-built-an-open-dataset-of-309-utah-marketing-agencies-4pee</guid>
      <description>&lt;p&gt;We run a &lt;a href="https://thebrandcaptain.com/directory/" rel="noopener noreferrer"&gt;directory of Utah marketing agencies&lt;/a&gt;. This week we exported the data behind it as an open dataset: 309 agencies in 50 Utah cities, with services, team size, founding year and published rates. It's CC BY 4.0, and the CSV is on &lt;a href="https://github.com/fedtman/utah-marketing-agencies" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and &lt;a href="https://doi.org/10.5281/zenodo.24512883" rel="noopener noreferrer"&gt;Zenodo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This post covers how the list was built, what we cut before releasing it, and two problems we hit while publishing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: collect candidates from four sources
&lt;/h2&gt;

&lt;p&gt;No single listing site has every agency, so we pulled candidates from four places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clutch's Utah agency lists and profile pages&lt;/li&gt;
&lt;li&gt;DesignRush's Utah lists&lt;/li&gt;
&lt;li&gt;BBB search results for marketing and advertising businesses in Utah&lt;/li&gt;
&lt;li&gt;a hand-built list of agencies we already knew about&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each source spells names and URLs differently. "Acme Digital", "Acme Digital LLC" and "acmedigital.com" are often the same company. We keyed every record on the website's domain and merged on that, falling back to the name only when a listing had no website. That gave us 507 candidates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: throw out what isn't a real Utah agency
&lt;/h2&gt;

&lt;p&gt;A script fetched every candidate's homepage and contact page, then dropped:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dead and parked domains.&lt;/strong&gt; A regex looks for registrar pages and server errors: "is for sale", HugeDomains, "Website Expired", database errors, bad SSL. Listing sites keep profiles up after an agency closes, and this caught them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No Utah evidence.&lt;/strong&gt; If neither the site nor any listing put the agency at a Utah address, it went. Agency lists for a state often include out-of-state firms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Video-only shops.&lt;/strong&gt; Agencies that only appeared on video production lists, with no other marketing listing, were cut.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Last, we searched Google Maps for each remaining agency by name and city. That added missing hours and contact details, and it dropped agencies Google marks as permanently closed. 309 made it through.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: tag services from the agency's own words
&lt;/h2&gt;

&lt;p&gt;Services come from matching the agency's homepage text against fixed keyword lists for 13 categories: SEO, local SEO, web design, Google Ads, Meta ads, social media, branding, content, ecommerce, email, video, PR and full service.&lt;/p&gt;

&lt;p&gt;This has a clear limit, and we say so in the data card. If an agency runs Facebook ads but never says it on the homepage, it gets a 0 for Meta ads. Matching the site's own text kept the tags tied to what each agency says it does, not to what a listing site guessed.&lt;/p&gt;

&lt;p&gt;Each category is also its own 0/1 column (&lt;code&gt;svc_seo&lt;/code&gt;, &lt;code&gt;svc_meta_ads&lt;/code&gt; and so on), so you can filter without splitting strings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: decide what not to publish
&lt;/h2&gt;

&lt;p&gt;The directory pages show more than the dataset does. Before releasing the export we dropped:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"About" paragraphs copied from agency sites, because that text belongs to the agencies&lt;/li&gt;
&lt;li&gt;star ratings and review counts from Clutch, Google and BBB, because those belong to the platforms&lt;/li&gt;
&lt;li&gt;phone numbers and street addresses&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What's left is facts: name, city, website, services, team size band, founding year, minimum project size, hourly rate band, BBB accreditation, and the source listings for each row. Every row also links back to the directory, to its city page where one exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: publish it where data people look
&lt;/h2&gt;

&lt;p&gt;The same files went to Zenodo (which gives it a DOI), Kaggle, DoltHub, GitHub and a Datawrapper chart. Two of those needed workarounds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DoltHub's CSV import failed.&lt;/strong&gt; Dolt infers column types from the first rows and picked a short VARCHAR for the &lt;code&gt;sources&lt;/code&gt; column. Rows with long source lists then failed to insert. The fix was to skip CSV import and upload a SQL file with the table created up front:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;agencies&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;city&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;website&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;services&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sources&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt;
  &lt;span class="c1"&gt;-- plus the svc_* columns and the rest&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;agencies&lt;/span&gt; &lt;span class="k"&gt;VALUES&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="p"&gt;.&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;p&gt;DoltHub opens the import as a pull request, so you merge it into main afterward.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Datawrapper's API rejected our session.&lt;/strong&gt; Calls to &lt;code&gt;api.datawrapper.de&lt;/code&gt; returned 401 even while logged in. The app itself talks to the same API through &lt;code&gt;/api/v3&lt;/code&gt; on &lt;code&gt;app.datawrapper.de&lt;/code&gt;, and that path works with the browser session.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the data
&lt;/h2&gt;

&lt;p&gt;A few numbers from the 309 rows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;70 agencies are in Salt Lake City, 35 in Lehi and 26 in Provo. Those three cities hold 42% of the list.&lt;/li&gt;
&lt;li&gt;219 mention SEO on their homepage. Only 60 mention Meta or Facebook ads.&lt;/li&gt;
&lt;li&gt;Of the 275 agencies with a team size, 237 have fewer than 50 people.&lt;/li&gt;
&lt;li&gt;Of the 153 with a published hourly rate, 109 start at $100 an hour or more.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Use it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Browse by city and service: &lt;a href="https://thebrandcaptain.com/directory/" rel="noopener noreferrer"&gt;Utah marketing agency directory&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CSV and JSON: &lt;a href="https://github.com/fedtman/utah-marketing-agencies" rel="noopener noreferrer"&gt;github.com/fedtman/utah-marketing-agencies&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Cite it: &lt;a href="https://doi.org/10.5281/zenodo.24512883" rel="noopener noreferrer"&gt;10.5281/zenodo.24512883&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you spot an agency that's missing, closed or in the wrong city, open an issue on the GitHub repo and we'll fix it in the next refresh.&lt;/p&gt;

</description>
      <category>opendata</category>
      <category>python</category>
      <category>datascience</category>
      <category>webscraping</category>
    </item>
  </channel>
</rss>
