Git Product home page Git Product logo

shasha77-yt-crawling's Introduction

介紹

這是我第一次跑比較完整的資料分析流程,從擷取資料開始,此專案適合新新手參考。
分為以下步驟:

  1. 使用python寫爬蟲,擷取下文本(aka. 志祺77 youtube影片標題、觀看數、上片時間),存成csv檔
  2. 使用Exel資料剖析分欄
  3. 使用Jieba斷詞、計算各keyword出現次數,存成csv檔
  4. 使用Excel觀察資料,找出有興趣的insights
  5. 使用Tableau繪製圖表及dashboard

Python爬蟲

檔案: crawl.ipynb
output: youtube_videos_details.csv

Jieba

檔案: jieba-yt.ipynb
input: 77yt_titles.csv
output: 77yt_jieba_result.csv

Tableau

完成作品: shasha 77 Youtube Analysis
第一次在Tableau上用中文創作,發現中文最大問題就是字體選擇少,而且在profile頁面thumbnail無法顯示中文,變成框框。

參考資料

  1. 爬蟲基本code框架都是從這為基礎: Scrap YouTube titles, views and thumbnails using Selenium and Python, by AI Decoder

  2. Jieba新手可以從這篇開始: Python - 知名 Jieba 中文斷詞工具教學

Reflection

  1. 由於url是用youtube/video,上片時間我只能擷取到"n個月前" 或 "n年前",還要研究如何可以取得具體日期。
  2. 年份是手動確認各年的分界線,如果可以取到完整日期真的會方便很多。
  3. 時間資料太粗也導致最後資料視覺化無法分析到月,只能討論到"年",所以也使用適用categorical data的長條圖。

shasha77-yt-crawling's People

Contributors

yishanhsieh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.