彩票的每一期的开奖数据接口那里用哟???
彩票的每一期的开奖数据接口那里用哟???
比如
双色球 福彩3D 七乐彩……等等
回复讨论(解决方案)
就是这些接口在那里可以找到。
搜了一个
http://baidu.lehecai.com/api/hao123/new_lottery_all.php
写了一个双色球摇奖:
<?php/* Created on [2011-11-22] Author[yushuai.niu] */ $redCodes = array(); $blueCodes = array(); for($i=1; $i <= 33; $i++){ $redCodes[$i] = $i; if($i <= 16){ $blueCodes[$i] = $i; } } $redballs = array_rand($redCodes,6); $blueball = array_rand($blueCodes,1); foreach($redballs as $key => $redball){ if($redball < 10){ $redball = "0".$redball; }else{ $redball = $redball; } $reds[] = $redball; } if($blueball < 10){ $blue = "0".$blueball; }else{ $blue = $blueball; }?><html><head><meta http-equiv="Content-Language" content="en" /><meta name="GENERATOR" content="PHPEclipse 1.0" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>double color ball</title></head><body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99"> <h4 id="double-nbsp-color-nbsp-ball">double color ball</h4> <table border=1> <tr> <?php if(isset($reds)){ foreach($reds as $red){ echo "<td>{$red}</td>"; } }else{ for($j=1; $j <= 6; $j++){ echo "<td> </td>"; } } if(isset($blue)){ echo "<td style='color:blue;'><b>{$blue}</b></td>"; }else{ echo "<td> </td>"; } ?> </tr> </table> <form action="ticket.php" method="post" enctype="text/plain"> <input type="submit" name="submit" value="get codes"/> </form></body></html>
自己去开奖中心抓数据吧
抓 ????
我问的不就是要数据吗?怎么抓呢???
自己去开奖中心抓数据吧
http://data.maicai.cn/kaijiang/
您地显得无聊吧
抓 ????
我问的不就是要数据吗?怎么抓呢???
引用 5 楼 phpnewnew 的回复:
自己去开奖中心抓数据吧
抓就是采集. 接口 是官方的api 才能叫接口。没有api就只能靠自己写采集代码去抓取..
小偷程序去采集,但经常不准
那我需要的就是api
引用 6 楼 xiachao2008 的回复:
抓 ????
我问的不就是要数据吗?怎么抓呢???
引用 5 楼 phpnewnew 的回复:
自己去开奖中心抓数据吧
抓就是采集. 接口 是官方的api 才能叫接口。没有api就只能靠自己写采集代码去抓取..
那你就可以死心结贴了
那我需要的就是api
引用 8 楼 phpnewnew 的回复:
引用 6 楼 xiachao2008 的回复:
抓 ????
我问的不就是要数据吗?怎么抓呢???
引用 5 楼 phpnewnew 的回复:
自己去开奖中心抓数据吧
抓就是采集. 接口 是官方的api 才能叫接口。没有api就只能靠自己写采集代码去抓取..
为什么,难到没有吗? 那你就可以死心结贴了
引用 10 楼 xiachao2008 的回复:
那我需要的就是api
引用 8 楼 phpnewnew 的回复:
引用 6 楼 xiachao2008 的回复:
抓 ????
我问的不就是要数据吗?怎么抓呢???
引用 5 楼 phpnewnew 的回复:
自己去开奖中心抓数据吧
抓就是采集. 接口 是官方的api 才能叫……
我给你的连接中就有,不过是付费的
免费的午餐?不怕吃了拉肚子?
呵呵
我们程序都喜欢共享的。
哈哈
我给你的连接中就有,不过是付费的
免费的午餐?不怕吃了拉肚子?
.net 的接口你要么
要
.net 的接口你要么
我也想要。net的接口!能给我发一份么?280619820@qq.com
.net 的接口你要么
能不能也发一份接口给我?非常感谢!
ejiabao@163.com
npfang@qq.com
也发一份我呀。
同求,朋友也给我发一份吧!hmilysyy@163.com

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

An official introduction to the non-blocking feature of ReactPHP in-depth interpretation of ReactPHP's non-blocking feature has aroused many developers' questions: "ReactPHPisnon-blockingbydefault...
