<?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: Subhan Ali</title>
    <description>The latest articles on DEV Community by Subhan Ali (@subhan_ali_98aee435d4dfe3).</description>
    <link>https://dev.to/subhan_ali_98aee435d4dfe3</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%2F3172862%2Fce248f11-3a29-4177-bfd8-ae4e9b5ac431.png</url>
      <title>DEV Community: Subhan Ali</title>
      <link>https://dev.to/subhan_ali_98aee435d4dfe3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/subhan_ali_98aee435d4dfe3"/>
    <language>en</language>
    <item>
      <title>Scraping YouTube Channel Data Using Python – No API Needed!</title>
      <dc:creator>Subhan Ali</dc:creator>
      <pubDate>Sat, 17 May 2025 07:47:54 +0000</pubDate>
      <link>https://dev.to/subhan_ali_98aee435d4dfe3/scraping-youtube-channel-data-using-python-no-api-needed-1g0j</link>
      <guid>https://dev.to/subhan_ali_98aee435d4dfe3/scraping-youtube-channel-data-using-python-no-api-needed-1g0j</guid>
      <description>&lt;p&gt;Recently, I built a Python-based scraper that collects public video data from YouTube channels — without using the official API. This was a fun and insightful project where I explored how YouTube structures its data and how to extract information efficiently.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔧 What It Does
&lt;/h2&gt;

&lt;p&gt;The script can extract the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Video Titles
&lt;/li&gt;
&lt;li&gt;View Counts
&lt;/li&gt;
&lt;li&gt;Publish Dates
&lt;/li&gt;
&lt;li&gt;Video URLs
&lt;/li&gt;
&lt;li&gt;Thumbnails
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It works directly from channel pages by sending requests and parsing the HTML with &lt;code&gt;BeautifulSoup&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎥 Demo Video
&lt;/h2&gt;

&lt;p&gt;I recorded a short demo of the scraper in action:&lt;br&gt;&lt;br&gt;
👉 &lt;a href="https://youtu.be/u4PV3uRqpR0?si=yU71RPgLIsonKr3L" rel="noopener noreferrer"&gt;Watch on YouTube&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  💻 Source Code on GitHub
&lt;/h2&gt;

&lt;p&gt;The complete Python code is open-source and available here:&lt;br&gt;&lt;br&gt;
👉 &lt;a href="https://github.com/subhanalii/youtube-scraper" rel="noopener noreferrer"&gt;View GitHub Repository&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🔍 Libraries Used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;requests&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;BeautifulSoup&lt;/code&gt; (from &lt;code&gt;bs4&lt;/code&gt;)
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;re&lt;/code&gt; for regex
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;json&lt;/code&gt; for parsing dynamic data blocks&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌 Why No API?
&lt;/h2&gt;

&lt;p&gt;YouTube's official Data API has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Quota limitations&lt;/li&gt;
&lt;li&gt;Requires API key setup&lt;/li&gt;
&lt;li&gt;More overhead for small-scale scrapers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I challenged myself to build a solution that works purely via scraping — lightweight and fast.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 Next Steps
&lt;/h2&gt;

&lt;p&gt;I’m considering adding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CLI flags for custom inputs
&lt;/li&gt;
&lt;li&gt;CSV/JSON export support
&lt;/li&gt;
&lt;li&gt;Playlist/channel crawler
&lt;/li&gt;
&lt;li&gt;Error handling &amp;amp; logging&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Would love feedback and suggestions from the community!&lt;/p&gt;




&lt;h2&gt;
  
  
  🤝 Let’s Connect
&lt;/h2&gt;

&lt;p&gt;If you've worked on similar projects or want to collaborate, feel free to reach out. Also open to contributors or testers!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
