2023法甲足球赛事的结果,源代码和数据

2023法甲足球赛事的结果,源代码和数据

双色球软件下载

彩票软件下载_手机软件下载

双色球预测软件下载

源代码:

// import libraries

const request = require('request');

const cheerio = require('cheerio');

// define URL to scrape

const url = 'https://www.flashscore.com/football/france/ligue-1/';

// make HTTP request

request(url, (error, response, html) => {

if(!error && response.statusCode == 200){

// get the HTML

const $ = cheerio.load(html);

// select the data that we need

const tableRows = $('.event__match');

// loop through the rows

tableRows.each(function(){

const team1Name = $(this).find('.event__participant--home .event__participant-name').text();

const team2Name = $(this).find('.event__participant--away .event__participant-name').text();

const score = $(this).find('.event__scores .event__scores-value').text();

const result = team1Name + ' ' + score + ' ' + team2Name;

console.log(result);

});

}

});

数据:

Nantes 0 - 0 Monaco

Lille 2 - 1 Dijon

Bordeaux 1 - 0 Metz

Strasbourg 3 - 1 Nimes

Rennes 3 - 1 Lorient

Angers 0 - 0 Brest

Reims 0 - 0 Lens

Marseille 1 - 0 Montpellier

Nice 1 - 0 Saint-Etienne

相关推荐

热门标签

本周排行榜app

网友评论:

返回首页 | 设为首页 | 加入收藏夹 | 软件下载


数乐盈软件 www.sly123888.com 彩软件下载站