import requests
import logging


def get_data_from_url(url, timeout=10):
    """Get data from URL"""
    try:
        response = requests.get(url, timeout=timeout)
        return response.text
    except requests.exceptions.RequestException as ex:
        logging.error(ex)