import os
import random

import requests.utils

__version__ = "0.0.5"

USER_AGENTS_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'useragents.txt')
USER_AGENTS = open(USER_AGENTS_FILE).read().splitlines()

requests.utils.default_user_agent = lambda: random.choice(USER_AGENTS)
