彩票的每一期的开奖数据接口那里用哟???
比如
双色球 福彩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

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

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

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

Laravel simplifies HTTP verb handling in incoming requests, streamlining diverse operation management within your applications. The method() and isMethod() methods efficiently identify and validate request types. This feature is crucial for building

The Storage::download method of the Laravel framework provides a concise API for safely handling file downloads while managing abstractions of file storage. Here is an example of using Storage::download() in the example controller:


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

SublimeText3 Linux new version
SublimeText3 Linux latest version

WebStorm Mac version
Useful JavaScript development tools

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version
Chinese version, very easy to use
