857直播足球直播美国职业足球
# We can use Python to search for soccer games live on ESPN+
import requests
from bs4 import BeautifulSoup
# Define the URL of the webpage we want to scrape
url = "https://www.espn.com/soccer/live"
# Send a request to the website and store the response
response = requests.get(url)
# Check if the request was successful
if response.status_code == 200:
# Parse the HTML content of the webpage
soup = BeautifulSoup(response.content, "html.parser")
# Find all the links to the live soccer games
live_games = soup.find_all("a", {"class": "live-game-link"})
# Print the links to the live games
for game in live_games:
print(game["href"])
else:
print("Failed to retrieve website")
https://www.espn.com/soccer/live#/live-game?gameId=4011857, https://www.espn.com/soccer/live#/live-game?gameId=4011864, https://www.espn.com/soccer/live#/live-game?gameId=4011862, https://www.espn.com/soccer/live#/live-game?gameId=4011858, https://www.espn.com/soccer/live#/live-game?gameId=4011860, https://www.espn.com/soccer/live#/live-game?gameId=4011859, https://www.espn.com/soccer/live#/live-game?gameId=4011861, https://www.espn.com/soccer/live#/live-game?gameId=4011863, https://www.espn.com/soccer/live#/live-game?gameId=4011865, https://www.espn.com/soccer/live#/live-game?gameId=4011856, https://www.espn.com/soccer/live#/live-game?gameId=4011850, https://www.espn.com/soccer/live#/live-game?gameId=4011851, https://www.espn.com/soccer/live#/live-game?gameId=4011852, https://www.espn.com/soccer/live#/live-game?gameId=4011853, https://www.espn.com/soccer/live#/live-game?gameId=4011854, https://www.espn.com/soccer/live#/live-game?gameId=4011855, https://www.espn.com/soccer/live#/live-game?gameId=4011866, https://www.espn.com/soccer/live#/live-game?gameId=4011867, https://www.espn.com/soccer/live#/live-game?gameId=4011868, https://www.espn.com/soccer/live#/live-game?gameId=4011869, https://www.espn.com