/lotterygrabber

自动周期爬取大乐透、双色球彩票数据

Primary LanguageShellMIT LicenseMIT

lotterygrabber

通过测试 系统需要debian8.2 64位 python2.7

一个在Debian系统上自动周期性爬取大乐透、双色球彩票开奖数据的脚本。
A script that automatically crawls the data of DaLeTou and ShuangSeQiu lottery on Debian system.

1. 如何使用?

  1. 首先在服务器上安装**debian 8.2(64位)**操作系统
  2. 用FTP上传lotterygraber或者用wget的方式,把脚本文件传到服务器上:
wget "https://github.com/BEWINDOWEB/lotterygrabber/archive/master.zip"
  1. 运行脚本
chmod +x bwb_lottery_main.sh
./bwb_lottery_main.sh

2. 我怎么知道运行成功了?

  1. 如果安装顺利,会在lotterygrabber目录下生成lotterydata目录。
  2. 脚本会在星期1、3、6晚上23:00爬取**体育彩票超级大乐透开奖号码,在星期2、4、7晚上23:00爬取**福利彩票双色球开奖号码。数据存放在lotterydata目录下,样例:
2018-03-14:18028,04,19,25,30,35,04,07
2018-03-15:18029,03,09,21,25,29,01,08
2018-03-17:18030,05,18,21,28,32,09,11
2018-03-19:18031,03,08,13,17,23,05,11
2018-03-21:18032,07,10,17,32,35,05,12
2018-03-23:18032,07,10,17,32,35,05,12

1. HOW TO USE?

  1. First, install the Debian 8.2 (64 bit) operating system on the server.
  2. Upload the lotterygraber with FTP OR use
wget "https://github.com/BEWINDOWEB/lotterygrabber/archive/master.zip"
  1. run the shell
chmod +x bwb_lottery_main.sh
./bwb_lottery_main.sh

2. HOW CAN I KOWN THAT I HAVE INSTALLED LNMP SUCCESSFULLY?

  1. If the installation is successful, the lotterydata directory will be generated under the lotterygrabber directory.
  2. The script will climb the Chinese sports lottery super lottery number at 23:00 on 1, 3, and 6 nights, and crawl the Chinese welfare lottery double color ball award number on week 2, 4 and 7 at 23:00 p.m. The data is stored in the lotterydata directory, sample:
2018-03-14:18028,04,19,25,30,35,04,07
2018-03-15:18029,03,09,21,25,29,01,08
2018-03-17:18030,05,18,21,28,32,09,11
2018-03-19:18031,03,08,13,17,23,05,11
2018-03-21:18032,07,10,17,32,35,05,12
2018-03-23:18032,07,10,17,32,35,05,12