Coder Social home page Coder Social logo

dyttspider's Introduction

基于 nodejs 的电影天堂爬虫项目

运行方式

node crawl_top_movies.js  // 爬取电影天堂top200电影资源
node crawl_china_movies.js  // 爬取电影天堂所有国内电影资源

相关博文

具体使用请看:

【node爬虫】前端爬虫系列「博客园」爬虫

说明:

1、sortArr.js文件是之前写的一个对象数组排序的工具

2、网站可能会更新,但是文档结构几乎不变,只需要更改下页码即可

3、爬取的结果已经保存,IMDB评分8以上电影top200:top200_movies.txt; 所有国内电影(手动修正过):revised_china_all_movies_with_rate.json

4、json文件是带有评分的,如果要获得评分在某个区间的所有电影,修改choose.js文件的minRate和maxRate值,然后执行即可

5、最新影片和欧美电影的爬取代码和爬取国内电影一样,只需要更改下链接地址和页数即可

6、如何下载我们爬取到的电影链接应该不需要多说了吧,用过迅雷的人都知道

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.