Giter VIP home page Giter VIP logo

emlog-spider's Introduction

hot-search

热点新鲜事采集

使用方式

准备工作:先导入 database.sql 到 mysql 数据库中,然后进行以下步骤

第一步: 先配置数据库:

cp config-demo.js config.js
vim config.js

第二步: 运行命令

// 安装依赖
npm install
// 微博热搜
node index.js

第三步: 使用定时任务

crontab -e
// 每1个小时
0 */1 * * * /usr/local/bin/node /var/www/hot-search-spider/index.js

热榜链接

weibo

https://s.weibo.com/top/summary

zhihu

https://www.zhihu.com/billboard

douyin

https://aweme.snssdk.com/aweme/v1/hot/search/list/

emlog-spider's People

Contributors

jaeheng 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.