{"id":18995660,"url":"https://github.com/turbot/powerpipe-mod-youtube","last_synced_at":"2026-05-14T18:33:53.028Z","repository":{"id":226285207,"uuid":"753959209","full_name":"turbot/powerpipe-mod-youtube","owner":"turbot","description":"Visualize Youtube channel performance, viewer trends, and geographic insights, and more using Powerpipe and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2024-03-06T19:32:27.000Z","size":343,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-01T16:24:50.447Z","etag":null,"topics":["dashboard","postgres","postgresql","powerpipe","powerpipe-mod","sql","youtube","youtubechannel"],"latest_commit_sha":null,"homepage":"https://hub.powerpipe.io/mods/turbot/youtube","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-07T05:38:49.000Z","updated_at":"2024-03-06T16:20:04.000Z","dependencies_parsed_at":"2024-03-08T11:01:53.692Z","dependency_job_id":null,"html_url":"https://github.com/turbot/powerpipe-mod-youtube","commit_stats":null,"previous_names":["turbot/powerpipe-mod-youtube"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fpowerpipe-mod-youtube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fpowerpipe-mod-youtube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fpowerpipe-mod-youtube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fpowerpipe-mod-youtube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/powerpipe-mod-youtube/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240010509,"owners_count":19733514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dashboard","postgres","postgresql","powerpipe","powerpipe-mod","sql","youtube","youtubechannel"],"created_at":"2024-11-08T17:32:16.022Z","updated_at":"2026-04-16T06:30:18.076Z","avatar_url":"https://github.com/turbot.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Mod for Powerpipe\n\nView dashboards to analyze [Youtube](https://www.youtube.com/) channel performance, viewer trends, and geographic insights, and more.\n\n![image](https://raw.githubusercontent.com/turbot/powerpipe-mod-youtube/main/docs/youtube_channel_dashboard_screenshot.png)\n\n## Overview\n\nDashboards can help answer questions like:\n\n- How many YouTube channels are present in the database?\n- How many YouTube channels exist?\n- What are the top 10 YouTube channels?\n- What are the different categories of the YouTube channels?\n- How many new subscribers have joined the channel over the last 30 days?\n\n## Documentation\n\n- **[Dashboards →](https://hub.powerpipe.io/mods/turbot/youtube/dashboards)**\n\n## Getting Started\n\n### Installation\n\nDownload and install [Powerpipe](https://powerpipe.io/downloads) and [PostgreSQL](https://www.postgresql.org/download/). Or use Brew:\n\n```sh\nbrew install turbot/tap/powerpipe\nbrew install turbot/tap/postgresql\n```\n\nInstall the mod:\n\n```sh\nmkdir dashboards\ncd dashboards\npowerpipe mod init\npowerpipe mod install github.com/turbot/powerpipe-mod-youtube\n```\n\n### Configure Database\n\nDownload [Global YouTube Statistics.csv](https://www.kaggle.com/code/nelgiriyewithana/an-introduction-to-the-global-youtube-statistics/input)\n\nMove the downloaded file into the dashboards directory:\n\n```sh\nmv ~/Downloads/Global YouTube Statistics.csv .\n```\n\nConnect to PostgreSQL:\n\n```sh\npsql -U \u003cusername\u003e -d postgres\n```\n\nCreate and connect to a database:\n\n```sh\ncreate database youtube;\n\\c youtube\n```\n\nCreate a table:\n\n```sh\ncreate table youtube_statistics (\n    rank INT,\n    youtuber VARCHAR(255),\n    subscribers NUMERIC,\n    video_views NUMERIC,\n    category VARCHAR(255),\n    title VARCHAR(255),\n    uploads NUMERIC,\n    country VARCHAR(100),\n    abbreviation VARCHAR(10),\n    channel_type VARCHAR(100),\n    video_views_rank NUMERIC,\n    country_rank NUMERIC,\n    channel_type_rank NUMERIC,\n    video_views_for_the_last_30_days NUMERIC,\n    lowest_monthly_earnings NUMERIC,\n    highest_monthly_earnings NUMERIC,\n    lowest_yearly_earnings NUMERIC,\n    highest_yearly_earnings NUMERIC,\n    subscribers_for_last_30_days NUMERIC,\n    created_year TEXT, -- Changed from INT to TEXT\n    created_month VARCHAR(10),\n    created_date FLOAT,\n    gross_tertiary_education_enrollment_percent NUMERIC,\n    population NUMERIC,\n    unemployment_rate NUMERIC,\n    urban_population NUMERIC,\n    latitude NUMERIC,\n    longitude NUMERIC\n);\n```\n\nLoad the dataset into the table:\n\n```sh\n\\copy youtube_statistics(rank, youtuber, subscribers, video_views, category, title, uploads, country, abbreviation, channel_type, video_views_rank, country_rank, channel_type_rank, video_views_for_the_last_30_days, lowest_monthly_earnings, highest_monthly_earnings, lowest_yearly_earnings, highest_yearly_earnings, subscribers_for_last_30_days, created_year, created_month, created_date, gross_tertiary_education_enrollment_percent, population, unemployment_rate, urban_population, latitude, longitude)\nfrom 'Global YouTube Statistics.csv' DELIMITER ',' CSV HEADER ENCODING 'ISO-8859-1';\n```\n\n### Browsing Dashboards\n\nStart the dashboard server with the DB connection string:\n\n```sh\npowerpipe server --database postgres://\u003cusername\u003e@localhost:5432/youtube\n```\n\nBrowse and view your dashboards at **http://localhost:9033**.\n\n## Open Source \u0026 Contributing\n\nThis repository is published under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0). Please see our [code of conduct](https://github.com/turbot/.github/blob/main/CODE_OF_CONDUCT.md). We look forward to collaborating with you!\n\n[Powerpipe](https://powerpipe.io) is a product produced from this open source software, exclusively by [Turbot HQ, Inc](https://turbot.com). It is distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our [Open Source FAQ](https://turbot.com/open-source).\n\n## Get Involved\n\n**[Join #powerpipe on Slack →](https://powerpipe.io/community/join)**\n\nWant to help but not sure where to start? Pick up one of the `help wanted` issues:\n\n- [Powerpipe](https://github.com/turbot/powerpipe/labels/help%20wanted)\n- [YouTube Mod](https://github.com/turbot/powerpipe-mod-youtuber/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fpowerpipe-mod-youtube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fpowerpipe-mod-youtube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fpowerpipe-mod-youtube/lists"}