Skip to content

Bisana8/vollebal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

vollebal

import requests

def get_number_of_volleyballs(): url = 'https://volleyballstats.eu/api/volleyballs/europe'

try:
    response = requests.get(url)
    data = response.json()
    number_of_volleyballs = data['volleyballs_count']
    return number_of_volleyballs
except requests.exceptions.RequestException as e:
    print(f"Error fetching data: {e}")
    return None

Example usage:

if name == "main": number_of_volleyballs = get_number_of_volleyballs() if number_of_volleyballs is not None: print(f"Number of volleyballs in Europe: {number_of_volleyballs}") else: print("Failed to retrieve data." import requests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published