Table of Contents
回复讨论(解决方案)
double color ball
Home Backend Development PHP Tutorial 彩票的每一期的开奖数据接口那里用哟???

彩票的每一期的开奖数据接口那里用哟???

Jun 23, 2016 pm 02:39 PM

彩票的每一期的开奖数据接口那里用哟???


比如

双色球 福彩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>
Copy after login

自己去开奖中心抓数据吧

抓 ????


我问的不就是要数据吗?怎么抓呢???

自己去开奖中心抓数据吧

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 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

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,

Explain the concept of late static binding in PHP. Explain the concept of late static binding in PHP. Mar 21, 2025 pm 01:33 PM

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

Framework Security Features: Protecting against vulnerabilities. Framework Security Features: Protecting against vulnerabilities. Mar 28, 2025 pm 05:11 PM

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

Customizing/Extending Frameworks: How to add custom functionality. Customizing/Extending Frameworks: How to add custom functionality. Mar 28, 2025 pm 05:12 PM

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

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

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

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

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.

What exactly is the non-blocking feature of ReactPHP? How to handle its blocking I/O operations? What exactly is the non-blocking feature of ReactPHP? How to handle its blocking I/O operations? Apr 01, 2025 pm 03:09 PM

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

See all articles