# Path: modules/utils/data.py
# def prepare_binary_from_url(url, verify=True):
#     try:
#         content = requests.get(url, timeout=(1, 3), verify=verify).content
#     except RequestException:
#         pass
#     else:
#         return BytesIO(content)


import twitter
from modules.utils.data import prepare_binary_from_url



def message_author(reply):
    message_from = reply['from']
    first_name = message_from.get('first_name', '')
    last_name = message_from.get('last_name', '')
    name = '{} {}'.format(first_name, last_name).strip()
    if not name:
        name = message_from.get('username', message_from.get('id'))	
    return name



# Path: modules/utils/data.py
# def prepare_binary_from_url(url, verify=True):
#     try:
#         content = requests.get(url, timeout=(1, 3), verify=verify).content
#     except RequestException:
#         pass
#     else:
#         return BytesIO(content)


# Path: modules/user_tweet.py
import twitter
from modules.utils.data import prepare_binary_from_url




def message_author(reply):
    message_from = reply['from']
    first_name = message_from.get('first_name', '')
    last_name = message_from.get('last_name', '')
    name = '{} {}'.format(first_name, last_name).strip()
    if not name:
        name = message_from.get('username', message_from.get('id'))	
    return name



def main(bot, *args, **kwargs):