资讯专栏INFORMATION COLUMN

如何获取篮球比赛实时赔率

陆斌 / 2574人阅读

   野子电竞数据官网改版[https://www.xxe.io/](https://www.xxe.io/)全新登场

import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

@Website: https://www.xxe.io/
*/
public class BasketballPlayerInfo {
public static void main(String[] args) {
try {
String content = getContent();

   
    String content = fetchString("http://test.win007.com/lq/LqOdds.aspx");
    MixString partMix = new MixString(content, "$");
    MixString rfMix = new MixString(partMix[2], ";");
    MixString opMix = new MixString(partMix[3], ";");
    MixString dxMix = new MixString(partMix[4], ";");

    return new BasketballFullOdds(
        rfMix.list.stream().map( it -> {
            MixString oddsMix = new MixString(it);
            return new BasketballYpOdds(
                oddsMix[0],
                oddsMix[1],
                oddsMix[2],
                oddsMix[3],
                oddsMix[4],
                oddsMix[5],
                oddsMix[6],
                oddsMix[7],
                oddsMix[8],
                oddsMix[9],
                oddsMix[10]
            );
        }).collect(Collectors.toList()),
        opMix.list.stream().map( it -> {
            MixString oddsMix = new MixString(it)
            return new BasketballOpOdds(
                oddsMix[0],
                oddsMix[1],
                oddsMix[2],
                oddsMix[3],
                oddsMix[4],
                oddsMix[5]
            );
        }).collect(Collectors.toList()),
        dxMix.list.stream().map( it -> {
            MixString oddsMix = new MixString(it)
            return new BasketballDxOdds(
                oddsMix[0],
                oddsMix[1],
                oddsMix[2],
                oddsMix[3],
                oddsMix[4],
                oddsMix[5],
                oddsMix[6],
                oddsMix[7],
                oddsMix[8],
                oddsMix[9],
                oddsMix[10]
            );
        }).collect(Collectors.toList())
    );
}

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/116356.html

相关文章

  • 世界杯押注还得看技术流,这个预测AI把赔率也算上了

    摘要:世界杯小组赛将收官,你还依然信吗冷门频出,黑马击败豪强。以本届世界杯开幕战俄罗斯对阵沙特阿拉伯的比赛为例,两队上次交手是在年的一场友谊赛,距今已经年。然后进入第二步,预测回报率导向。在足球领域,这个回报率已非常不俗。 世界杯小组赛将收官,你还依然信AI吗?冷门频出,黑马击败豪强。不少AI模型始料未及。到底还能不能愉快找到科学规律?或者说足球比赛乃至其他竞技体育赛事,数据科学家在AI加持下,究...

    walterrwu 评论0 收藏0
  • 如何获取篮球即时赔率api接口?

    摘要:篮球数据即时赔率调用示例代码,在线文档可注册下,篮球赔率接口详情页篮球全场赔率接口为了展示只输出条数据,实际不止获取返回内容这里为了方便测试我使用了一份本地文件,使用时应替换为真实接口返回内容返回数据如下部分友谊赛泛美男篮菲专员 篮球数据【即时赔率】API调用示例代码,在线文档可注册下,篮球赔率接口详情页 import java.nio.charset.StandardCharsets...

    hightopo 评论0 收藏0
  • 如何获取篮球即时赔率api接口?

    摘要:篮球数据即时赔率调用示例代码,在线文档可注册下,篮球赔率接口详情页篮球全场赔率接口为了展示只输出条数据,实际不止获取返回内容这里为了方便测试我使用了一份本地文件,使用时应替换为真实接口返回内容返回数据如下部分友谊赛泛美男篮菲专员 篮球数据【即时赔率】API调用示例代码,在线文档可注册下,篮球赔率接口详情页 import java.nio.charset.StandardCharsets...

    asoren 评论0 收藏0
  • 如何获取足球比赛即时赔率

    摘要:在线接口调用文档,需注册下百家欧赔接口获取返回内容这里为了方便测试我使用了一份本地文件,使用时应替换为真实接口返回内容请输入代码返回数据如下球會友誼球会友谊卡爾達斯卡尔达斯艾納斯艾纳斯加爾聯加尔联警察警察英国韓女聯韩女联報恩尚武女足报 在线接口调用文档https://www.feijing88.com/foo...,需注册下 package com.huaying.demo.footb...

    Harriet666 评论0 收藏0
  • 如何获取足球比赛即时赔率

    摘要:在线接口调用文档,需注册下百家欧赔接口获取返回内容这里为了方便测试我使用了一份本地文件,使用时应替换为真实接口返回内容请输入代码返回数据如下球會友誼球会友谊卡爾達斯卡尔达斯艾納斯艾纳斯加爾聯加尔联警察警察英国韓女聯韩女联報恩尚武女足报 在线接口调用文档https://www.feijing88.com/foo...,需注册下 package com.huaying.demo.footb...

    glumes 评论0 收藏0

发表评论

0条评论

陆斌

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<