<?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: Ismat-Samadov</title>
    <description>The latest articles on DEV Community by Ismat-Samadov (@ismatsamadov).</description>
    <link>https://dev.to/ismatsamadov</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3853849%2F49681e6e-ccdb-4b76-8c43-a92d8d3a7e1a.jpeg</url>
      <title>DEV Community: Ismat-Samadov</title>
      <link>https://dev.to/ismatsamadov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ismatsamadov"/>
    <language>en</language>
    <item>
      <title>How I Built a Job Aggregator That Scrapes 80+ Sites Daily</title>
      <dc:creator>Ismat-Samadov</dc:creator>
      <pubDate>Tue, 31 Mar 2026 16:21:10 +0000</pubDate>
      <link>https://dev.to/ismatsamadov/how-i-built-a-job-aggregator-that-scrapes-80-sites-daily-5fen</link>
      <guid>https://dev.to/ismatsamadov/how-i-built-a-job-aggregator-that-scrapes-80-sites-daily-5fen</guid>
      <description>&lt;p&gt;Last year, job seekers in Azerbaijan had to check 10+ websites every morning. boss.az, hellojob.az, jobsearch.az, LinkedIn, plus dozens of company career pages. No one aggregated them.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://www.birjob.com" rel="noopener noreferrer"&gt;BirJob&lt;/a&gt; — a scraper that pulls from 80+ sources into one searchable platform.&lt;/p&gt;

&lt;p&gt;Here's how it works under the hood.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GitHub Actions (cron, twice daily)
    ↓
80+ Python scrapers (aiohttp + BeautifulSoup)
    ↓
PostgreSQL on Neon (dedup via md5 hash)
    ↓
Next.js 14 on Vercel (SSR + API routes)
    ↓
Users search / get alerts via Email + Telegram
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Scraper System
&lt;/h2&gt;

&lt;p&gt;Each scraper extends a &lt;code&gt;BaseScraper&lt;/code&gt; class:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;BaseScraper&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fetch_url_async&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="c1"&gt;# aiohttp with retry logic, rate limiting
&lt;/span&gt;        &lt;span class="c1"&gt;# returns HTML string or JSON dict
&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;save_to_db&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="c1"&gt;# pandas DataFrame → PostgreSQL
&lt;/span&gt;        &lt;span class="c1"&gt;# ON CONFLICT (apply_link) DO UPDATE
&lt;/span&gt;        &lt;span class="c1"&gt;# dedup_hash = md5(company + title)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Most sites are simple HTML — BeautifulSoup handles them. A few are SPAs (Next.js, React) that need Playwright. Some use GraphQL APIs which are actually easier to scrape than HTML.&lt;/p&gt;

&lt;p&gt;The hardest ones:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare-protected sites&lt;/strong&gt; — GitHub Actions IPs get blocked. Some I had to disable entirely.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sites that change HTML monthly&lt;/strong&gt; — CSS class hashes change every deploy. Switched to &lt;code&gt;__NEXT_DATA__&lt;/code&gt; JSON extraction for those.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rate limiting&lt;/strong&gt; — concurrency limited to 2 scrapers at a time for stability.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deduplication
&lt;/h2&gt;

&lt;p&gt;The same job appears on 3-4 boards with slightly different titles. I compute a dedup hash:&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="n"&gt;md5&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;company&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;'::'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="k"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Stored as a column with an index. The search query uses &lt;code&gt;DISTINCT ON&lt;/code&gt; this hash so users never see the same job twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;80+ sources scraped daily&lt;/li&gt;
&lt;li&gt;10,000+ active jobs&lt;/li&gt;
&lt;li&gt;30,000+ candidate profiles (scraped from CV boards)&lt;/li&gt;
&lt;li&gt;450+ blog articles&lt;/li&gt;
&lt;li&gt;~700 new jobs per weekday&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What It Costs
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Vercel Pro&lt;/td&gt;
&lt;td&gt;$20/mo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Neon Postgres&lt;/td&gt;
&lt;td&gt;$5/mo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Resend (email)&lt;/td&gt;
&lt;td&gt;Free tier&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub Actions&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloudflare R2&lt;/td&gt;
&lt;td&gt;~$0.50/mo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~$25/mo&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Revenue
&lt;/h2&gt;

&lt;p&gt;Sponsored job postings — HR departments pay 30-80 AZN ($18-47) to promote their listing. When they pay, we automatically email matching candidates from our database.&lt;/p&gt;

&lt;p&gt;First paying customer: an HR manager who posted a Data Analyst role. We emailed 87 matching candidates within minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd Do Differently
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Start with fewer sources.&lt;/strong&gt; I launched with 91 scrapers. Half broke within a month. Should have started with 20 reliable ones.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Dedup earlier.&lt;/strong&gt; I added deduplication 3 months in. Before that, users saw the same job 4 times.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Don't use Playwright unless you must.&lt;/strong&gt; It's 10x slower and breaks in CI. Most "dynamic" sites have a JSON endpoint if you look hard enough.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: Next.js 14, Tailwind CSS, TypeScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: Next.js API routes, Prisma ORM&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database&lt;/strong&gt;: PostgreSQL on Neon&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scrapers&lt;/strong&gt;: Python, aiohttp, BeautifulSoup, Playwright (few)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosting&lt;/strong&gt;: Vercel&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI/CD&lt;/strong&gt;: GitHub Actions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email&lt;/strong&gt;: Resend&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage&lt;/strong&gt;: Cloudflare R2 (CVs)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring&lt;/strong&gt;: Sentry&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check it out: &lt;a href="https://www.birjob.com" rel="noopener noreferrer"&gt;birjob.com&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Ismat, a developer in Baku. Happy to answer questions about scraping architecture, running a one-person product, or anything else.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbhraimbxxlii8vsfx6v3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbhraimbxxlii8vsfx6v3.png" alt="Preview of the birjob"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>webdev</category>
      <category>nextjs</category>
      <category>scraping</category>
    </item>
  </channel>
</rss>
