Coder Social home page Coder Social logo

song_web's Introduction

Bmat Song Crawler

-Demo Link (heroku)
-Demo Link (AWS ec2)
-Nelson 2021.04.26

爬取資料

目前平台:

  1. QQ
  2. Kugou
  3. NetEase

開始爬取日期: 3/15

Timestamp: 1615737600

Bmat S3 bucket_name: s3://bmat.charts.shared/deepwave/

資料夾格式

-Web

-category

Kugou_category.json

kuwo_category.json

NetEase_category.json

QQ_category.json

-config

setting.json

clean_data_ver1.py

clear_data_ver2.py

config.py

crawler.py

json_to_xlsx.py

mysql.py

執行過程

  • Step 1. 創建platform's category json檔案
  • Step 2. 讀取category json檔,根據origin toplist ID抓取當周的排行榜音樂資訊
  • Step 3. 抓每首歌的詳細信息 (Lyrics)
  • Step 4. Data cleaning
  • Step 5. Build Song Table
  • Step 6. Build Intermediate_Table

crawler.py

$ python crawler.py --action all --xlsx False
--action  platformname  platform to be crawlered
--xlsx    boolean       Output xlsx or not,now just support QQ and NetEase

clean_data_ver1.py

取四個platform共同欄位

  • songname
  • album_name
  • duration
  • singer name
  • lyrics

clean_data_ver2.py

  • Increasing songID
  • Building Song Table
  • Building Intermediate_Table

DataBase Design

song_web's People

Contributors

r07922003 avatar hackmd-deploy 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.