Coder Social home page Coder Social logo

music163's Introduction

基于scrapy的网易云音乐歌单信息/歌曲热评爬虫

小弟抱以学习python与scrapy的心态完成此项目,请大家海涵,勿喷。 如有建议,可进行pull request,谢谢!

如何使用?

安装依赖

python3.7 -m pip install scrapy pymongo requests fake_useragent

注意: 需要预先安装好mongodb

运行步骤

git clone [email protected]:bennypeng/music163.git
cd music163
scrapy crawl kuaidaili   # 爬取kuaidaili代理ip
scrapy crawl xicidaili   # 爬取xicidaili代理ip
scrapy crawl hotcomments # 爬取所有歌曲热门评论
scrapy crawl playlists   # 爬取所有热门歌单信息

辅助脚本

cd music163/music163
python3.7 output_top100_playlist.py  # 输出播放量前100名歌单信息

更新日志

[1.0.3] - 2019-02-01

  • 增加辅助脚本output_top100_playlist.py输出歌单信息

[1.0.2] - 2019-01-31

  • 增加爬虫playlists用于爬取热门歌单信息

[1.0.1] - 2019-01-27

  • 修复了一些错误
    • fake_useragent报错Maximum amount of retries reached,暂无法解决,改为直接从配置中随机读取ua
  • 进行了一些优化
    • xicidaili和kuaidaili使用同一个item来存储代理

[1.0.0] - 2019-01-24

  • 增加爬虫hotcomments用于爬取歌曲热评
  • 增加爬虫xicidaili用于爬取可用代理ip
  • 增加爬虫kuaidaili用于爬取可用代理ip
  • 使用fake_useragent生成随机USER-AGENT

music163's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

luoyanhan

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.