Giter Site home page Giter Site logo

lotterygrabber's Introduction

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

3.其他

想要用机器学习去研究彩票,发现很多网站只提供近500期的数据,那么从现在开始,每天都爬取一下以后万一想用了呢。
欢迎提交issues,代码原理已经发布在个人博客《用Python简单爬取双色球开奖信息(升级版)》 上了。

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

3.at last

I want to study the lottery by machine learning, and find that many websites offer only 500 periods of data. so from now on, crawling it every day in case i want to use it in the future.
welcome to propose issues, and forgive me for poor English.The code principle is writed in personal blog article《用Python简单爬取双色球开奖信息(升级版)》

lotterygrabber's People

Contributors

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