Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

YouTube Top 100 Channels Scrapy Project

Welcome! This project is about scraping the top 100 YouTube channels from Social Blade. The HTML structure of the website was a bit complicated, but no worries, we managed to get through it!

πŸš€ Quick Start

  1. Install necessary packages

    Make sure you have all the necessary packages installed. You can find the list in the requirements.txt file.

    pip install -r requirements.txt
  2. Run the Spider

    Navigate to the project directory and run the socialblade_spider.

    scrapy crawl socialblade_spider -O data.csv

πŸ“¦ Output

The scraped data will be saved in a CSV file. You can easily open it using spreadsheet software like Microsoft Excel or Google Sheets to analyze the data.

πŸ“‹ Data Columns

The scraper extracts the following columns:

  • SocialBlade Url
  • Channel Name
  • Channel ID
  • Channel Link
  • Uploads
  • Subscribers
  • Views
  • Country
  • Channel Type
  • Created Date
  • Social Blade Rank
  • Subscriber Rank
  • Video View Rank
  • Country Rank
  • People Rank
  • Estimated Monthly Income
  • Subscribers Last 30 Days
  • Views Last 30 Days
  • Yearly Income
  • Daily Subscribers Average
  • Daily Views Average

πŸ” What Was Tricky?

  • Unclear HTML Structure: The website structure wasn’t very friendly, but we rolled up our sleeves and decoded the necessary parts to scrape the data accurately.

  • HTTP Errors: We encountered some HTTP 403 and 302 errors during the process. To navigate around these, we utilized headers and cache strategies.

πŸ“š Resources

  • Scrapy Documentation: If you want to dig deeper or face any issues, Scrapy’s official documentation is a great resource: Scrapy Documentation

πŸ™Œ Contributions

Feel free to dive in! Open an issue, submit enhancements, or fix bugs. Your contributions are always welcome!

πŸ“ƒ License

This project is open-source and available to everyone. You can use, modify, and distribute it as you like. Enjoy your scraping journey!


About

A scrapy project to scrape youtube channel stats from scrapy

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages