Skip to content

一个用于推送羽毛球场预定情况并可以自动预约的爬虫

Notifications You must be signed in to change notification settings

marmot-z/yingsa2-spider

Repository files navigation

这是一个定时爬取「趣运动」公众号羽毛球馆预定信息,将其推送至微信,并支持自动预定羽毛球场地的工具。

部署

  1. 安装nodejs

    前往nodejs官网下载对应最新稳定版本的nodejs

  2. 设置npm镜像

    npm config set registry https://registry.npm.taobao.org
    
  3. 下载代码

    git clone https://github.com/marmot-z/yingsa2-spider.git
    cd yingsa2-spider/
    
  4. 配置文件

    1. 配置定时cron表达式用于设置爬虫工作频率(其与正常cron表达式基本一致,只不过起最后一位不能使用?,只能使用*
    2. 设置手机号码(user.phoneNum)和密码(user.password)用于登录
    3. 设置目需要预定的场地(interested.sites)和时间段(interested.startHour/interested.endHour)
    4. 设置推送相关的应用token和用户uid(详情请看push.md
  5. 构建 & 启动

    npm install
    node ./index.js &
    

声明

本工具只用来学习爬虫使用,仅供参考,不能用于其他用途。

About

一个用于推送羽毛球场预定情况并可以自动预约的爬虫

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published