YouTrend

Welcome to the heart of YouTrend’s data-gathering prowess – the Scraper module. This essential component empowers you to delve deep into the YouTube trending landscape by collecting and parsing data from the Google YouTube API. Harnessing the capabilities of Python, requests, and pandas, our Scraper module ensures you have access to a rich dataset, enabling you to derive valuable insights and make informed decisions.

Key Functions:

post_request_ytb(country_code_list, trending_type_dict)

collect_short_data(shorts_list, data_dictionary, country_code)

add_now_videos_shorts(response_dict, data_dictionary)

add_other_sections(response_dict, data_dictionary)

update_video_data(data_dictionary)

update_meta_data(data_dictionary)

How to Run the Scraper Script:

  1. Create an empty data_dictionary to be filled.
  2. Fill it with YouTube ID information and other basic information using post_request_ytb, add_now_videos_shorts, and add_other_sections functions.
  3. Update the data_dictionary with individual data by calling update_video_data and update_meta_data functions.
  4. Create the corresponding .csv file within the /data directory.

Unleash the power of data-driven decision-making with YouTrend’s Scraper module. Dive into the world of YouTube trending with confidence!